Commit Graph

334 Commits

Author SHA1 Message Date
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
44805ca383 Make discussion js work for cms as well as lms so that inline discussion xmodules load 2012-10-01 15:16:54 -04:00
Calen Pennington
2554413291 Hook up link to create modules from templates 2012-09-25 10:10:44 -04:00
Chris Dodge
e6445ceaa0 adjust implementation to reflect feedback from Calen. Also limit the jQuery selection to be within the metadata-edit region, just to avoid picking up other elements decorated with that attribute 2012-09-24 13:03:34 -04:00
Chris Dodge
d51f127afa work-in-progress: As a problem author, I would like to be able to edit module metadata 2012-09-21 14:29:19 -04:00
Calen Pennington
d7cbd1c814 Don't do extra json conversion/de-conversion for data/children going to the cms 2012-09-18 15:07:35 -04:00
Calen Pennington
bb06a926bb Make saving also save the children in the #sortable element (TODO: name the #sortable element better) 2012-09-18 13:19:30 -04:00
Victor Shnayder
523cb334a0 Hook up reordering children in the browser.
* NOTE: the new order is NOT saved to the server!
2012-08-08 13:15:05 -04:00
Victor Shnayder
77175872cc Fix some of the CMS jasmine tests.
* still a few that I haven't tracked down...
2012-08-08 13:14:54 -04:00
Calen Pennington
85adfde1f2 Update previews after a module is saved 2012-07-24 16:14:05 -04:00
Calen Pennington
408726e678 Standardize how JS XModules are instantiated 2012-07-24 16:14:04 -04:00
Calen Pennington
8481937f59 Move Logger and *withPrefix javascript into a common location 2012-07-24 16:14:03 -04:00
Calen Pennington
61446b0544 Make javascript for video previews work correctly 2012-07-24 16:14:01 -04:00
Calen Pennington
5f86fcfbff Standardize how Problem and Video modules are loaded in the LMS and CMS preview pane 2012-07-24 16:14:00 -04:00
Calen Pennington
4798c596f0 Load preview modules with actual preview elements 2012-07-24 16:14:00 -04:00
Calen Pennington
230dd88afd Add global methods used by video module to CMS 2012-07-24 16:14:00 -04:00
Calen Pennington
2d570f7c54 Load preview modules when a cms edit page is opened 2012-07-24 16:14:00 -04:00
Calen Pennington
15ac476781 Display preview html on the module edit page. Javascript for previews doesn't yet function 2012-07-24 15:05:07 -04:00
Calen Pennington
6d246f0685 Merge remote-tracking branch 'origin/master' into ps-cms-backbone
Conflicts:
	cms/djangoapps/contentstore/views.py
	cms/static/coffee/unit.coffee
	cms/templates/index.html
	cms/templates/widgets/sequence-edit.html
2012-07-10 08:55:45 -04:00
Prem Sichanugrist
9dc5cddeb7 Move vendored js files into js/vendor/ 2012-07-06 12:07:21 -04:00
Prem Sichanugrist
07aae06d30 Remove unnecessary fat arrow 2012-07-06 11:52:10 -04:00
Prem Sichanugrist
b8fd728e06 Pass in element in CMS.start() instead 2012-07-06 11:33:37 -04:00
Prem Sichanugrist
289599733d Make it more obvious that the function is no-op 2012-07-06 11:33:00 -04:00