Changeset 519 for Dev/trunk/src/client/qed-client
- Timestamp:
- 03/15/14 01:00:23 (11 years ago)
- Location:
- Dev/trunk/src/client/qed-client
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/app/Router.js
r515 r519 29 29 this._handleHashChange(hash()); 30 30 window.onbeforeunload = function(evt) { 31 var msg = Content.isDirty() ? 32 "Unsaved changes, leave anyway?" : 33 null; 34 evt.returnValue = msg; 31 var msg; 32 if ( Content.isDirty() ) { 33 msg = "Unsaved changes, leave anyway?"; 34 evt.returnValue = msg; 35 } 35 36 return msg; 36 37 }; -
Dev/trunk/src/client/qed-client/css/ui/topbar.less
r443 r519 6 6 float: left; 7 7 clear: left; 8 } 9 10 #qedModeNode { 11 float: left; 12 margin-top: 28px; 8 13 } 9 14 -
Dev/trunk/src/client/qed-client/index.js
r472 r519 5 5 "./ui/MainMenu", 6 6 "dojo/_base/array", 7 "dojo/_base/xhr", 8 "dojo/dom", 7 9 "dojo/parser", 8 10 "./stddeps", 9 11 "dojo/domReady!" 10 ], function(Router, routes, session, MainMenu, array, parser) {12 ], function(Router, routes, session, MainMenu, array, xhr, dom, parser) { 11 13 12 14 parser.parse(); 13 15 14 16 new MainMenu({},"menu").startup(); 17 18 xhr("GET", { 19 url: 'api/mode', 20 handleAs: 'json' 21 }).then(function(result){ 22 var node = dom.byId('qedModeNode'); 23 if ( result.mode !== 'production' ) { 24 node.innerHTML = "Running in "+result.mode+" mode"; 25 } 26 }); 15 27 16 28 array.forEach(routes,function(route){ -
Dev/trunk/src/client/qed-client/pages/surveyRun.js
r506 r519 47 47 .then(lang.hitch(this,function(allResponses){ 48 48 array.forEach(allResponses, function(response){ 49 var actions = { 50 view: { 51 callback: function(){}, 49 var actions = {}; 50 if ( !response.publicationDate ) { 51 actions.Delete = { 52 callback: function(){ 53 responses.remove(response) 54 .then(function(){ 55 w.destroy(); 56 }); 57 }, 52 58 properties: { 53 title: "View response" 54 } 55 } 56 }; 57 if ( !response.publicationDate ) { 58 actions.remove = { 59 callback: function(){}, 60 properties: { 61 title: "Remove response" 59 icon: 'Delete', 60 title: "Delete response" 62 61 } 63 62 };
Note: See TracChangeset
for help on using the changeset viewer.