Don Mitchell
a46c1f4883
Updated underscore (using _.invert())
...
The scss junk comes from trying to sync w/ several branches. I believe
it's right but mostly unnecessary (surprised it showed up).
Debugged the merge w/ cms-master
Fixed grace period to be absolute time difference not a date on the
client side.
2012-12-11 14:18:13 -05:00
Don Mitchell
39024a7fee
Grading mostly working
2012-12-10 16:32:33 -05:00
Don Mitchell
88cc5a080b
Everything tested and ready for Tom to fix
2012-11-19 10:38:58 -05:00
Don Mitchell
91a91f4ddb
Hopefully the course-info changes I had made w/o link destruction
2012-11-19 10:38:58 -05:00
Chris Dodge
b432db1aba
Merge branch 'feature/cale/cms-master' of github.com:MITx/mitx into feature/cdodge/static-tab-edit
2012-11-08 09:55:56 -05:00
Chris Dodge
7dbabce4db
fix up styling by reusing existing CSS class names. Also refactor some code regarding the management of static_tabs so that it's in the course as course contains references to static_tabs in the current data model
2012-11-08 09:55:52 -05:00
chrisndodge
e3d65a0c08
Merge pull request #997 from MITx/feature/cale/js-tests
...
Feature/cale/js tests
2012-11-08 06:44:49 -08:00
Chris Dodge
a99277275d
add new files
2012-11-07 15:56:16 -05:00
Chris Dodge
afd8584569
remove explicit 'null' for child collection on saveName on unit code paths. I had seen cases where save was posting back an empty set on renames - deleting the components. But I can no longer reproduce it now.
2012-11-07 09:34:44 -05:00
Chris Dodge
a9c4493a70
always make the spinner spin on unit renames
2012-11-05 12:26:44 -05:00
Chris Dodge
6b45b4c741
bind the disabling/enabling of the unit name input field based on whether the page state is public or not. We shouldn't be able to edit when public.
2012-11-05 12:02:08 -05:00
Calen Pennington
255720abd7
Clean old javascript tests from CAS
2012-10-31 13:21:36 -04:00
Calen Pennington
3d9c92c574
Remove references to #visibility id that was changed to .visibility-select
2012-10-26 13:34:21 -04:00
Calen Pennington
bd1233d38c
Only update data in modules that have been set when passing into save_item, and don't force callers to set everything
2012-10-25 13:56:24 -04:00
Calen Pennington
2dd77656cc
Make all edits on unit page happen immediately, and restore the delete draft button
2012-10-24 15:00:33 -04:00
Calen Pennington
fb06344290
Allow for deletion of all components in a draft
2012-10-24 14:59:00 -04:00
Tom Giannattasio
dee6219510
brought delete button back to drafts; save on delete component
2012-10-24 14:46:46 -04:00
Tom Giannattasio
33e6c583bf
removed toast on save component
2012-10-22 15:55:04 -04:00
Tom Giannattasio
33df317d1b
added spinner to unit input name
2012-10-22 15:55:04 -04:00
Tom Giannattasio
00f3db370d
whitespace trim
2012-10-22 15:55:04 -04:00
Tom Giannattasio
54937e4622
added delayed save after modifying display name on unit page
2012-10-22 15:55:04 -04:00
Tom Giannattasio
c3bffe3e21
update name in unit location pane whenever display name is changed
2012-10-15 13:04:06 -04:00
Chris Dodge
aa4361b3f0
Merge branch 'feature/cale/cms-master' of github.com:MITx/mitx into fix/cdodge/signup-tweeks
2012-10-15 11:26:53 -04:00
Chris Dodge
4d439bbe03
add a confirmation when deleting components
2012-10-15 11:24:34 -04:00
Tom Giannattasio
1cfde391ff
changed save unit alerts to toast
2012-10-15 10:54:58 -04:00
Tom Giannattasio
edc32e9db5
tweaks to new component animations
2012-10-10 15:46:59 -04:00
Calen Pennington
9ea3039b64
Wire component deletion back up
2012-10-10 12:49:53 -04:00
Calen Pennington
8b72de9afe
Make it impossible to drag belowe New Component on views
2012-10-10 12:49:53 -04:00
Calen Pennington
95b3f0d7de
Make component drag-and-drop a little nicer
2012-10-10 12:49:53 -04:00
Calen Pennington
6b3fbcf0e7
Wire up display name editor in unit editing view
2012-10-10 12:49:53 -04:00
Calen Pennington
bd5d5f1419
Make location view state update as the state changes on the unit page
2012-10-10 12:49:52 -04:00
Calen Pennington
bfb5f333a9
Disable save draft button when there is nothing to save
2012-10-10 12:49:52 -04:00
Calen Pennington
28ea662855
Save a draft before publishing it
2012-10-10 12:49:52 -04:00
Calen Pennington
7ccdc5d42a
Grey out inactive items when changing state in unit editing view
2012-10-10 12:49:52 -04:00
Calen Pennington
310f26a6de
Basic implementation of draft, public and private modes
2012-10-10 12:49:51 -04:00
Calen Pennington
1585286c55
Pass onDelete to newly created ModuleEdit views
2012-10-10 12:49:51 -04:00
Calen Pennington
1a8532d8ad
Make it possible to create, edit, and publish a draft
2012-10-10 12:49:51 -04:00
Calen Pennington
d80c931772
Hook up the component delete button to the backend. Don't break if the process of updating a parent unit after deleting is interrupted (leaving a pointer to a missing module)
2012-10-03 14:24:11 -04:00
Calen Pennington
bd7ea4424b
Enable reordering on the unit page
2012-10-03 13:24:24 -04:00
Chris Dodge
425e840e7d
in order to avoid using stale modules when editing, clear out the @module variable after a save(). Then on a subsequent edit, it'll get recreated
2012-10-02 11:37:27 -04:00
Chris Dodge
ad7771fe5a
always load in a new instance of the edit module. It appeared as though on multiple edits (w/o refreshing page) without creating a new data model, we were always referencing stale content from the previous edit
2012-10-02 11:06:28 -04:00
chrisndodge
d108af8848
Merge pull request #799 from MITx/feature/cale/cms-codemirror-background
...
Feature/cale/cms codemirror background
2012-10-02 07:10:29 -07:00
Calen Pennington
55542c1d47
Make editor display immediately, and with a white background
2012-10-02 09:42:19 -04:00
Calen Pennington
1d8d82b7fc
Set id's on newly created components so that they are immediately editable
2012-10-01 16:06:18 -04:00
Calen Pennington
bfeccd88f8
Enable creation of new components
2012-10-01 15:28:07 -04:00
Calen Pennington
8ca10a8356
Separate unit page from vertical implementation for editing
2012-10-01 15:19:35 -04:00
Calen Pennington
b305c0bae2
Make drag/drop save content immediately in seqs and verticals
2012-10-01 15:17:41 -04:00
Calen Pennington
fd7223bd87
Make editing work, building towards drag/drop saving
2012-10-01 15:17:41 -04:00
Calen Pennington
ce3638538c
Make inline editing save to mongo and then update the preview
2012-10-01 15:17:41 -04:00
Calen Pennington
2554413291
Hook up link to create modules from templates
2012-09-25 10:10:44 -04:00