Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…orks, but not action
  • Loading branch information
cesine committed Feb 10, 2014
1 parent 5846514 commit e631cf7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
22 changes: 14 additions & 8 deletions ui/confirm.reel/confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@
"bindings": {
"label": {"<-": "@owner.okLabel"}
},
"listeners": [
{
"listeners": [{
"type": "action",
"listener": {
"@": "owner"
}
}
]
},{
"type": "longAction",
"listener": {
"@": "owner"
}
}]
},
"button2": {
"prototype": "digit/ui/button.reel",
Expand All @@ -47,14 +50,17 @@
"bindings": {
"label": {"<-": "@owner.cancelLabel"}
},
"listeners": [
{
"listeners": [{
"type": "action",
"listener": {
"@": "owner"
}
}
]
},{
"type": "longAction",
"listener": {
"@": "owner"
}
}]

},
"icon": {
Expand Down
13 changes: 13 additions & 0 deletions ui/confirm.reel/confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ var Confirm = exports.Confirm = Component.specialize( /** @lends module:"matte/u
this.popup.hide();
}
},

handleOkLongAction:{
value: function(evt) {
this.handleOkAction(evt);
}
},

/**
Description TODO
@function
Expand All @@ -122,6 +129,12 @@ var Confirm = exports.Confirm = Component.specialize( /** @lends module:"matte/u

this.popup.hide();
}
},

handleCancelLongAction:{
value: function(evt) {
this.handleCancelAction(evt);
}
}

// Static method to show a Confirmation dialog
Expand Down

0 comments on commit e631cf7

Please sign in to comment.