Changeset 032d31 in indico
- Timestamp:
- 08/12/10 14:06:35 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- de2a21
- Parents:
- 90bdb9
- git-author:
- Leszek Syroka <leszek.marek.syroka@…> (07/15/10 16:37:02)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (08/12/10 14:06:35)
- Location:
- indico
- Files:
-
- 3 edited
-
MaKaC/webinterface/tpls/AdminPluginsOptionList.tpl (modified) (3 diffs)
-
htdocs/js/indico/Core/Widgets/Inline.js (modified) (2 diffs)
-
htdocs/js/presentation/Data/Remote.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/tpls/AdminPluginsOptionList.tpl
r4ea0cf r032d31 75 75 <div id="roomAddButton"></div> 76 76 <script type="text/javascript"> 77 var callback = function(){ 78 $E('roomChooser').set(roomChooser.draw(),addRoomButton); 79 } 80 77 81 var removeRoomHandler = function (roomToRemove,setResult){ 78 82 indicoRequest( … … 102 106 <% if rbActive: %> 103 107 104 var roomChooser = new SelectRemoteWidget('roomBooking.locationsAndRooms.list', {} )108 var roomChooser = new SelectRemoteWidget('roomBooking.locationsAndRooms.list', {}, callback); 105 109 var addRoomButton = Html.input("button", {style:{marginRight: pixels(5)}}, $T('Add Room') ); 106 110 addRoomButton.observeClick( … … 121 125 ); 122 126 }); 123 $E('roomChooser').set(roomChooser.draw(),addRoomButton);124 127 $E('roomAddButton').set(); 125 128 <% end %> -
indico/htdocs/js/indico/Core/Widgets/Inline.js
r4ea0cf r032d31 65 65 * server automatically? 66 66 */ 67 function(method, attributes, loadOnStartup ) {67 function(method, attributes, loadOnStartup, callback) { 68 68 loadOnStartup = exists(loadOnStartup)?loadOnStartup:true; 69 69 this.ready = new WatchValue(); 70 70 this.ready.set(false); 71 71 this.loadOnStartup = loadOnStartup; 72 this.source = indicoSource(method, attributes, null, !loadOnStartup );72 this.source = indicoSource(method, attributes, null, !loadOnStartup, callback); 73 73 }); 74 74 … … 427 427 428 428 }, 429 function(method, args ) {429 function(method, args, callback) { 430 430 this.options = new WatchObject(); 431 431 this.select = Html.select({}); 432 432 this.selected = new WatchValue(); 433 433 // Load data source on startup 434 this.InlineRemoteWidget(method, args, true); 434 this.InlineRemoteWidget(method, args, true, callback); 435 this.loadOnStartup = false; 435 436 }); 436 437 -
indico/htdocs/js/presentation/Data/Remote.js
reb7c79 r032d31 113 113 * @return {WatchAccessor} value 114 114 */ 115 function jsonRpcValue(url, method, params, def, dontStart ) {115 function jsonRpcValue(url, method, params, def, dontStart, callback) { 116 116 // not an object for url... curry 117 117 var self = new Source(); … … 132 132 error: null 133 133 }); 134 135 if(callback) { 136 callback(); 137 } 134 138 } 135 139 }
Note: See TracChangeset
for help on using the changeset viewer.
