Browse Source

Use custom mask for question

pull/110/head
Ruud 13 years ago
parent
commit
a400136e66
  1. 14
      couchpotato/static/scripts/library/question.js

14
couchpotato/static/scripts/library/question.js

@ -18,13 +18,7 @@ var Question = new Class( {
createMask : function() { createMask : function() {
var self = this var self = this
$(document.body).mask( { self.mask = new Element('div.mask').fade('hide').inject(document.body).fade('in');
'hideOnClick' : true,
'destroyOnHide' : true,
'onHide' : function() {
self.container.destroy();
}
}).show();
}, },
createQuestion : function() { createQuestion : function() {
@ -71,7 +65,11 @@ var Question = new Class( {
}, },
close : function() { close : function() {
$(document.body).get('mask').destroy(); var self = this;
self.mask.fade('out');
(function(){self.mask.destroy()}).delay(1000);
this.container.destroy();
}, },
toElement : function() { toElement : function() {

Loading…
Cancel
Save