- Timestamp:
- 07/01/13 03:34:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.