Changeset 472 for Dev/trunk/src/client
- Timestamp:
- 07/01/13 03:34:23 (12 years ago)
- Location:
- Dev/trunk/src/client/qed-client
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/css/qed.css
r452 r472 1 /* This CSS file is generated. All edits will be lost on recompile. */ 1 2 @import "dijit/claro.css"; 2 3 /* line 1, /home/hendrik/gamelab/qed.svn/Dev/trunk/src/client/qed-client/css/colors.less */ -
Dev/trunk/src/client/qed-client/index.js
r468 r472 1 1 define([ 2 "./app/Content",3 "./app/Page",4 2 "./app/Router", 5 3 "./routes", 6 4 "./session", 7 "./store",8 "./store/request",9 "./ui/LoginDialogWrapper",10 5 "./ui/MainMenu", 11 6 "dojo/_base/array", … … 13 8 "./stddeps", 14 9 "dojo/domReady!" 15 ], function(Content, Page, Router, routes, session, store, 16 request, LoginDialogWrapper, MainMenu, array, parser) { 10 ], function(Router, routes, session, MainMenu, array, parser) { 17 11 18 12 parser.parse(); -
Dev/trunk/src/client/qed-client/store/CouchStore.js
r468 r472 241 241 242 242 for ( var opt in queryOpts ) { 243 queryOpts[opt] = json.toJson(queryOpts[opt]); 243 if ( queryOpts.hasOwnProperty(opt) ) { 244 queryOpts[opt] = json.toJson(queryOpts[opt]); 245 } 244 246 } 245 247 -
Dev/trunk/src/client/qed-client/widgets/LineWithActionsWidget.js
r443 r472 34 34 } 35 35 for (var action in this.actions) { 36 var properties; 37 if (this.actions[action].properties.blockButton === true) { 38 properties = lang.mixin({ 39 baseClass: 'rftBlockButton', 40 label: "Default", 41 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 42 title: this.actions[action].properties.tooltip, 43 onClick: lang.hitch(this, function(action, e){ 44 if ( action.callback ) { action.callback(e); } 45 event.stop(e); 46 return false; 47 }, this.actions[action]) 48 }, this.actions[action].properties); 49 new Button(properties).placeAt(this.buttonsNode); 50 } else { 51 properties = lang.mixin({ 52 baseClass: 'rftInlineButton', 53 label: "Default", 54 showLabel: false, 55 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 56 title: this.actions[action].properties.tooltip, 57 onClick: lang.hitch(this, function(action, e){ 58 if ( action.callback ) { action.callback(e); } 59 event.stop(e); 60 return false; 61 }, this.actions[action]) 62 }, this.actions[action].properties); 63 new Button(properties).placeAt(this.buttonsNode); 36 if ( this.actions.hasOwnProperty(action) ) { 37 var properties; 38 if (this.actions[action].properties.blockButton === true) { 39 properties = lang.mixin({ 40 baseClass: 'rftBlockButton', 41 label: "Default", 42 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 43 title: this.actions[action].properties.tooltip, 44 onClick: lang.hitch(this, function(action, e){ 45 if ( action.callback ) { action.callback(e); } 46 event.stop(e); 47 return false; 48 }, this.actions[action]) 49 }, this.actions[action].properties); 50 new Button(properties).placeAt(this.buttonsNode); 51 } else { 52 properties = lang.mixin({ 53 baseClass: 'rftInlineButton', 54 label: "Default", 55 showLabel: false, 56 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 57 title: this.actions[action].properties.tooltip, 58 onClick: lang.hitch(this, function(action, e){ 59 if ( action.callback ) { action.callback(e); } 60 event.stop(e); 61 return false; 62 }, this.actions[action]) 63 }, this.actions[action].properties); 64 new Button(properties).placeAt(this.buttonsNode); 65 } 64 66 } 65 67 } -
Dev/trunk/src/client/qed-client/widgets/ObjectBox.js
r443 r472 41 41 var line3Actions = {}; 42 42 for (var action in this.actions) { 43 line3Actions[action] = { 44 callback: lang.hitch(this, function(callback){ 45 if ( this.value ) { callback(this.value); } 46 }, this.actions[action]), 47 properties: { 48 blockButton: true, 49 label: action, 50 icon: action.charAt(0).toUpperCase()+action.slice(1) 51 } 52 }; 43 if ( this.actions.hasOwnProperty(action) ) { 44 line3Actions[action] = { 45 callback: lang.hitch(this, function(callback){ 46 if ( this.value ) { callback(this.value); } 47 }, this.actions[action]), 48 properties: { 49 blockButton: true, 50 label: action, 51 icon: action.charAt(0).toUpperCase()+action.slice(1) 52 } 53 }; 54 } 53 55 } 54 56 return line3Actions; -
Dev/trunk/src/client/qed-client/widgets/Selector.js
r443 r472 57 57 if ( this.selectedActions !== null ) { 58 58 for (var actionName in this.selectedActions) { 59 action = this.selectedActions[actionName]; 60 actions[actionName] = { 61 callback: action.callback && 62 lang.hitch(this,this._onSelectedAction, 63 action.callback), 64 properties: { 65 blockButton: true, 66 label: action.title || actionName, 67 icon: action.icon, 68 tooltip: action.description 69 } 70 71 }; 59 if ( this.selectedActions.hasOwnProperty(actionName) ) { 60 action = this.selectedActions[actionName]; 61 actions[actionName] = { 62 callback: action.callback && 63 lang.hitch(this,this._onSelectedAction, 64 action.callback), 65 properties: { 66 blockButton: true, 67 label: action.title || actionName, 68 icon: action.icon, 69 tooltip: action.description 70 } 71 72 }; 73 } 72 74 } 73 75 } … … 180 182 if (this.itemActions) { 181 183 for (var actionName in this.itemActions) { 182 action = this.itemActions[actionName]; 183 actions[actionName] = { 184 callback: action.callback && lang.partial(action.callback,item), 185 properties: { 186 blockButton: false, 187 showLabel: false, 188 icon: action.icon + " black", 189 tooltip: action.description 190 } 191 }; 184 if ( this.itemActions.hasOwnProperty(actionName) ) { 185 action = this.itemActions[actionName]; 186 actions[actionName] = { 187 callback: action.callback && lang.partial(action.callback,item), 188 properties: { 189 blockButton: false, 190 showLabel: false, 191 icon: action.icon + " black", 192 tooltip: action.description 193 } 194 }; 195 } 192 196 } 193 197 } -
Dev/trunk/src/client/qed-client/widgets/_ComplexValueMixin.coffee
r466 r472 46 46 # widgets within other forms, the onSubmit must either be 47 47 # ignored or propagated, but not handled here. 48 event.stop if e48 event.stop e if e 49 49 false
Note: See TracChangeset
for help on using the changeset viewer.