Ignore:
Timestamp:
06/14/12 18:34:52 (13 years ago)
Author:
tjcschipper
Message:
  • Fixed callbacks/actions in LineWithActionsWidgetThijs?.js. Previously an onClick event would not fire the correct callback. They were also incorrectly bound to the context of the widget, so the this keyword referred to the properties object instead of the LineWithActions?.
  • Changed a bunch of stuff in CSS files, general layout.
  • Added another mockup page to show the Session selection page.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidgetThijs.js

    r339 r342  
    2828                            baseClass: 'rftBlockButton',
    2929                            modifiers: this.modifiers,
    30                             label: action,
    31                             iconClass: 'rftIcon rftIcon'+action,
     30                            label: "Default",
     31                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
    3232                            title: action,
    33                             onClick: lang.hitch(this, function(){
    34                                 this.actions[action].callback(this.userObject);
    35                             })
    36                         },
    37                         this.actions[action].properties);
     33                            onClick: lang.hitch(this, this.actions[action].callback)
     34                        }, this.actions[action].properties);
    3835                        properties["class"] = properties.modifiers;
    3936                        new Button(properties).placeAt(this.buttonsNode);
     
    4239                            baseClass: 'rftInlineButton',
    4340                            modifiers: 'black',
     41                            label: "Default",
    4442                            showLabel: false,
    45                             iconClass: 'rftIcon rftIcon'+action,
     43                            iconClass: 'rftIcon rftIcon'+this.actions[action].properties.icon,
    4644                            title: action,
    47                             onClick: lang.hitch(this, function(){
    48                                 this.actions[action].callback(this.userObject);
    49                             })
    50                         },
    51                         this.actions[action].properties);
     45                            onClick: lang.hitch(this, this.actions[action].callback)
     46                        }, this.actions[action].properties);
    5247                        properties["class"] = properties.modifiers;
    5348                        new Button(properties).placeAt(this.buttonsNode);
     
    6560                return !preventDefault;
    6661            },
    67             onClick: function(e) {}
     62            onClick: function(e) {},
     63            _setTitleAttr: function(value){
     64                this.title = value;
     65                this.refresh();
     66            }
    6867        });
    6968    });
Note: See TracChangeset for help on using the changeset viewer.