Ignore:
Timestamp:
07/23/12 13:07:24 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Seperated question browser in TabbedQuestionBrowser? widget.
Made configuring Selector actions more flexible (both for top actions and item actions).
Fixed lowercase/uppercase problem in SurveyListView?.
Fixed whitespace and toolyip in LineWithActionsWidget?.
Added question browser to questions page. Removed the old dialog that was there and redirect to questionEditor page.

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
  • Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidget.js

    r356 r370  
    4040                                                        label: "Default",
    4141                                                        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                                                                 event.stop(e);
    46                                                                 return false;
    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])
    4848                                                }, this.actions[action].properties);
    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: action,
    59                                                                 onClick: lang.hitch(this, dojo.partial(function(ac, e){
    60                                                                         lang.hitch(this, this.actions[ac].callback)(e);
    61                                                                         event.stop(e);
    62                                                                         return false;
    63                                                                 }, 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 });
     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.