Changeset bf400b in indico
- Timestamp:
- 01/28/11 15:53:52 (2 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- 4b2050
- Parents:
- 492fbe
- git-author:
- Adrian Moennich <jerome.ernst.monnich@…> (01/26/11 14:19:40)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (01/28/11 15:53:52)
- File:
-
- 1 edited
-
indico/htdocs/js/indico/Legacy/Dialogs.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/htdocs/js/indico/Legacy/Dialogs.js
r79b41e rbf400b 593 593 var compileMinutes = exists(compile)?compile:false; 594 594 var killProgress = null; 595 var saveAndClose = false; 595 596 596 597 var rtWidget = new ParsedRichTextEditor(700, 400, 'IndicoFull'); … … 649 650 wasChanged = true; 650 651 saveButton.dom.disabled = true; 652 if (saveAndClose) { 653 closeMinutes(); 654 } 651 655 } 652 656 } … … 665 669 var content = Html.div({}, rtWidget.draw()); 666 670 667 var commitChanges = function(suicideHook) { 671 var commitChanges = function() { 672 debugger; 668 673 killProgress = IndicoUI.Dialogs.Util.progress($T('Saving...')); 669 674 if(rtWidget.clean()){ 670 675 changedText.set(false); 676 wasChanged = true; 671 677 saveButton.dom.disabled = true; 672 req.set(rtWidget.get()) 678 req.set(rtWidget.get()); 673 679 } 674 killProgress() 680 killProgress(); 675 681 }; 676 682 677 var commitChangesAndClose = function(suicideHook) { 678 commitChanges(suicideHook); 683 var commitChangesAndClose = function() { 684 saveAndClose = true; 685 commitChanges(); 679 686 }; 680 687 … … 699 706 }; 700 707 701 saveButton = Widget.button(command(c urry(commitChanges, function(){self.close();}, null), $T("Save")));708 saveButton = Widget.button(command(commitChanges, $T("Save"))); 702 709 saveButton.dom.disabled = !compileMinutes; 703 710
Note: See TracChangeset
for help on using the changeset viewer.
