- Timestamp:
- 07/23/12 13:07:24 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client/rft/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/rft/ui
-
Property
svn:ignore
set to
.QuestionEditorPreviewItem.js.swp
-
Property
svn:ignore
set to
-
Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidget.js
r356 r370 40 40 label: "Default", 41 41 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 42 title: action,43 onClick: lang.hitch(this, dojo.partial(function(ac, e){44 lang.hitch(this, this.actions[ac].callback )(e);45 46 47 }, action))42 title: this.actions[action].properties.tooltip, 43 onClick: lang.hitch(this, function(action, e){ 44 action.callback && action.callback(e); 45 event.stop(e); 46 return false; 47 }, this.actions[action]) 48 48 }, this.actions[action].properties); 49 50 51 52 53 54 55 56 57 58 title: action,59 onClick: lang.hitch(this, dojo.partial(function(ac, e){60 lang.hitch(this, this.actions[ac].callback)(e);61 62 63 }, action))64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 });49 properties["class"] = properties.modifiers; 50 new Button(properties).placeAt(this.buttonsNode); 51 } else { 52 properties = lang.mixin({ 53 baseClass: 'rftInlineButton', 54 modifiers: 'black', 55 label: "Default", 56 showLabel: false, 57 iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon, 58 title: this.actions[action].properties.tooltip, 59 onClick: lang.hitch(this, function(action, e){ 60 action.callback && action.callback(e); 61 event.stop(e); 62 return false; 63 }, this.actions[action]) 64 }, this.actions[action].properties); 65 properties["class"] = properties.modifiers; 66 new Button(properties).placeAt(this.buttonsNode); 67 } 68 } 69 }, 70 refresh: function() { 71 this.titleNode.innerHTML = this.title; 72 }, 73 _onClick: function(e){ 74 var preventDefault = this.onClick(e) === false; 75 if (preventDefault) { 76 event.stop(e); 77 } 78 return !preventDefault; 79 }, 80 onClick: function(e) { 81 }, 82 _setTitleAttr: function(value){ 83 this.title = value; 84 this.refresh(); 85 } 86 }); 87 });
Note: See TracChangeset
for help on using the changeset viewer.