Closed Bug 1039638 Opened 12 years ago Closed 12 years ago

Move template overrides into external files

Categories

(Webmaker Graveyard :: Events, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gvn, Assigned: jon)

References

Details

(Whiteboard: [events] [july25])

Attachments

(1 file)

Right now jshint is throwing a lot of errors, mostly due to the inline templates here: https://github.com/mozilla/webmaker-events-2/blob/master/app/js/directives.js#L315 If possible, please make these templates external so that we can get `grunt jshint` passing again. Also, if you can fixup any other jshint errors that would be fantastic! Thanks!
Also, since that code isn't part of the directives module it shouldn't go in directives.js.
Assignee: ali → jon
Status: NEW → ASSIGNED
Attachment #8457415 - Flags: review?(gavin)
Blocks: 1038911
Summary: Fixup jshint errors and externalize templates → Move template overrides into external files
Whiteboard: [july25] → [events] [july25]
Comment on attachment 8457415 [details] [review] https://github.com/mozilla/webmaker-events-2/pull/144 Excellent! Although Travis will still fail if that's our end goal (and it should be!). You'll need to run `grunt clean` so the JS is beautified and fixup a couple more jshint errors (`grunt jshint`). Once `grunt validate` passes we're all good!
Attachment #8457415 - Flags: review?(gavin) → review-
End goal being: Travis passing. ;)
Also, FWIW we can just remove those 2 alerts. They are basically worthless because they're being sent objects.
EG: [L130:C11] W117: 'alert' is not defined. alert(error); [L152:C11] W117: 'alert' is not defined. alert(error);
Attachment #8457415 - Flags: review- → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: