Brian Talbot
7ae534799b
studio - revises error message copy when section name is left blank on outline view
2013-05-22 15:55:54 -04:00
David Baumgold
c628a8a360
Fix test
2013-05-22 15:55:53 -04:00
David Baumgold
a8431eeae2
Section model shouldn't react to AJAX errors
...
Doing so overrides the AJAX error popup
2013-05-22 15:55:53 -04:00
David Baumgold
525fe2d581
Expose a dummy gettext function in the Jasmine test env
2013-05-22 15:55:53 -04:00
Brian Talbot
0fd3bb6079
studio - removes the .is-fleeting class/animation that is handled by backbone's min/max time for notifications
2013-05-22 15:55:53 -04:00
Brian Talbot
02e022ec7b
studio - revises the min amount of time the saving notification appears on the outline view
2013-05-22 15:55:53 -04:00
Brian Talbot
52b10df805
studio - revises copy of server error notification to include a default message and removes associated actions from notifications
2013-05-22 15:55:53 -04:00
David Baumgold
a0a71c0df2
Internationalization for JS
2013-05-22 15:55:53 -04:00
David Baumgold
9cbfee9894
Fix Jasmine tests related to invalid messages for section model
2013-05-22 15:55:53 -04:00
David Baumgold
2b01273f7f
Added some Jasmine tests for section views in Backbone
2013-05-22 15:55:52 -04:00
David Baumgold
6ed5a2aa01
Added tests for Backbone section models
2013-05-22 15:55:52 -04:00
David Baumgold
56d8a467c8
Add tests for minShown and maxShown in views
2013-05-22 15:55:52 -04:00
David Baumgold
09a8075355
If a Backbone view can't find its template, I want to know
2013-05-22 15:55:52 -04:00
David Baumgold
d10e644c6e
Added sinon.js to project
2013-05-22 15:55:52 -04:00
David Baumgold
dc76d71c42
4-space indents for coffeescript
2013-05-22 15:55:52 -04:00
David Baumgold
fcf4cdc75e
Implement minShown and maxShown for notification views
2013-05-22 15:55:51 -04:00
David Baumgold
91c2594c8d
Fix section name validation alerting
2013-05-22 15:55:51 -04:00
David Baumgold
8e384a73be
Remove proof-of-concept page
2013-05-22 15:55:51 -04:00
David Baumgold
4af3325976
Move display logic into view
...
Model shouldn't know about things like close buttons, visibility, and so on
2013-05-22 15:55:51 -04:00
David Baumgold
528987342a
Add tests for primary and secondary CSS classes
2013-05-22 15:55:51 -04:00
David Baumgold
fedfe8627f
Add tests for click events on views
2013-05-22 15:55:51 -04:00
David Baumgold
070d24cf61
Jasmine doesn't like asserting on the <body> element :(
2013-05-22 15:55:51 -04:00
David Baumgold
10ec604630
Got jasmine tests working with fixtures properly
2013-05-22 15:55:50 -04:00
David Baumgold
0c368011da
Move underscore templates into separate files, included in Mako templates
2013-05-22 15:55:50 -04:00
David Baumgold
5275e41e4a
Adding new feedback view tests
2013-05-22 15:55:50 -04:00
David Baumgold
39f81df476
Added a few more tests for feedback models
2013-05-22 15:55:50 -04:00
David Baumgold
e440580c79
Started writing Backbone tests
...
Hacking the Python, because our JS dependency management is borked.
2013-05-22 15:55:50 -04:00
David Baumgold
69a6ec0c97
Don't fall over if a model doesn't have actions defined
...
It appears that one notification stealing focus from another causes some weirdness:
both clicking on a button on one view triggers the event on both views (the original
and the new view that stole the div). As long as the first view does *not* define
any click events, everything is fine -- this is the case for the saving notification.
I'll worry about the reason for this later; it has something to do with views
listening to models even after they no longer should be.
2013-05-22 15:55:50 -04:00
David Baumgold
1333717871
Message action callbacks have model set to this
2013-05-22 15:55:50 -04:00
David Baumgold
f5f7cf705f
Subclass CMS.Models.SystemFeedback
...
To create handy WarningMessage, ErrorMessage, and ConfirmationMessage classes
2013-05-22 15:55:50 -04:00
David Baumgold
4e41c8060b
Changed validation error to use new messaging framework
2013-05-22 15:55:50 -04:00
David Baumgold
c6c5e50d86
Hook up notification framework to default AJAX error callback
...
And delete `CMS.ServerError`
2013-05-22 15:55:49 -04:00
David Baumgold
e2f5acef46
Turn course sections into Backbone models
...
Hook up course name edit interaction, with notification framework
2013-05-22 15:55:49 -04:00
David Baumgold
772be3b8b3
Make the system feedback template more generic
...
Not that it really matters, since the changes are invisible :)
2013-05-22 15:55:49 -04:00
David Baumgold
cd2f67afa4
Clone the attributes object
...
So that modifications don't affect the model
2013-05-22 15:55:49 -04:00
David Baumgold
355162c7f6
Handle fleeting notifications
2013-05-22 15:55:49 -04:00
David Baumgold
0dc3446523
Handle saving popup
2013-05-22 15:55:49 -04:00
David Baumgold
91cdb1e3df
Use "class" instead of "cls"
...
Matching docstring in feedback.js models
2013-05-22 15:55:49 -04:00
David Baumgold
5746121f5c
Set up Notification and Prompt
2013-05-22 15:55:49 -04:00
David Baumgold
5c2116a4b3
Make abstract view, make Alert inherit from it
2013-05-22 15:55:49 -04:00
David Baumgold
5ff2adb882
Rename alert model to SystemFeedback
2013-05-22 15:55:48 -04:00
David Baumgold
56a92bff51
Hook up CMS.ServerError to new alerting system
2013-05-22 15:55:48 -04:00
David Baumgold
40000a3ac5
Make close tab on alerts close the alert
2013-05-22 15:55:48 -04:00
David Baumgold
c0d69022cb
Set up Backbone model/view for alerts
2013-05-22 15:55:48 -04:00
David Baumgold
7e22278fcb
Simplify Youtube API script link
2013-05-22 15:55:48 -04:00
Frances Botsford
9effdc57b1
removed symbolset, replaced with fontawesome for settings
2013-05-22 15:55:48 -04:00
Frances Botsford
571ebb1fcd
removed symbolset, replaced with fontawesome for view live, expand collape, zoom buttons
2013-05-22 15:55:48 -04:00
Frances Botsford
88dd9244f3
removed symbolset, replaced with fontawesome for sock and static pages
2013-05-22 15:55:48 -04:00
Frances Botsford
81cb921e32
removed symbolset, replaced with fontawesome throughout for new buttons; updated old code for new button at bottom of grading to also use the FA style
2013-05-22 15:55:48 -04:00
Frances Botsford
9a62433797
removed symbolset, replaced with fontawesome for asset upload
2013-05-22 15:55:47 -04:00