Skip to content

Commit

Permalink
Don't react to clicks on disabled button icons
Browse files Browse the repository at this point in the history
Fix gh-74
  • Loading branch information
necolas committed Jun 20, 2013
1 parent 0051616 commit 5ed4a33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions demo/app/component_ui/mail_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,11 @@ define(
};

this.after('initialize', function() {
this.on('click', {
this.on('.mail-action', 'click', {
'deleteControlSelector': this.deleteMail,
'moveControlSelector': this.moveMail,
'forwardControlSelector': this.forwardMail,
'replyControlSelector': this.replyToMail

});
this.on(document, 'uiMailItemSelectionChanged', this.restyleOnSelectionChange);
this.on(document, 'uiFolderSelectionChanged', this.disableAll);
Expand Down
2 changes: 1 addition & 1 deletion demo/app/component_ui/with_select.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define(
this.initializeSelections = function() {
this.select('selectedItemSelector').toArray().forEach(function(el) {
this.attr.selectedIds.push(el.getAttribute('id'));
},this);
}, this);
};

this.getSelectedIds = function() {
Expand Down

0 comments on commit 5ed4a33

Please sign in to comment.