Enabler option

This commit is contained in:
Ruud
2011-04-10 12:31:31 +02:00
parent 85fc1c01ee
commit 2b8e96e267
26 changed files with 239 additions and 245 deletions
+6 -6
View File
@@ -297,19 +297,19 @@ Movie.Action.Delete = new Class({
});
$(self.mask).adopt(
new Element('a.button.delete', {
'text': 'Delete movie',
new Element('a.button.cancel', {
'text': 'Cancel',
'events': {
'click': self.del.bind(self)
'click': self.mask.hide.bind(self.mask)
}
}),
new Element('span', {
'text': 'or'
}),
new Element('a.button.cancel', {
'text': 'Cancel',
new Element('a.button.delete', {
'text': 'Delete movie',
'events': {
'click': self.mask.hide.bind(self.mask)
'click': self.del.bind(self)
}
})
);