lightbox
This commit is contained in:
parent
53f46ae5fd
commit
7a4c0ae40e
@ -1002,6 +1002,9 @@
|
||||
}
|
||||
$.bind($('textarea[name=flavors]', dialog), 'change', $.cb.value);
|
||||
$.bind($('input[name=time]', dialog), 'keyup', options.cb.time);
|
||||
$.append(d.body, $.el('div', {
|
||||
className: 'overlay'
|
||||
}));
|
||||
$.append(d.body, dialog);
|
||||
options.cb.time.call($('input[name=time]', dialog));
|
||||
dialog.addEventListener('mousedown', (function(e) {
|
||||
@ -1011,6 +1014,7 @@
|
||||
},
|
||||
rm: function() {
|
||||
$.rm($('#options'));
|
||||
$.rm($('.overlay'));
|
||||
return window.removeEventListener('mousedown', options.rm, false);
|
||||
},
|
||||
tab: function() {
|
||||
@ -2780,6 +2784,14 @@
|
||||
.inlined {\
|
||||
opacity: .5;\
|
||||
}\
|
||||
.overlay {\
|
||||
position: fixed;\
|
||||
width: 100%;\
|
||||
height: 100%;\
|
||||
top: 0;\
|
||||
left: 0;\
|
||||
background-color: rgba(0,0,0,.5);\
|
||||
}\
|
||||
'
|
||||
};
|
||||
main.init();
|
||||
|
||||
@ -783,7 +783,11 @@ options =
|
||||
$.bind link, 'click', options.tab for link in $$ '#floaty a', dialog
|
||||
$.bind $('textarea[name=flavors]', dialog), 'change', $.cb.value
|
||||
$.bind $('input[name=time]', dialog), 'keyup', options.cb.time
|
||||
|
||||
$.append d.body, $.el 'div', className: 'overlay'
|
||||
|
||||
$.append d.body, dialog
|
||||
|
||||
options.cb.time.call $('input[name=time]', dialog)
|
||||
|
||||
dialog.addEventListener 'mousedown', ((e) -> e.stopPropagation()), false
|
||||
@ -791,6 +795,7 @@ options =
|
||||
|
||||
rm: ->
|
||||
$.rm $ '#options'
|
||||
$.rm $ '.overlay'
|
||||
window.removeEventListener 'mousedown', options.rm, false
|
||||
|
||||
tab: ->
|
||||
@ -2149,6 +2154,14 @@ main =
|
||||
.inlined {
|
||||
opacity: .5;
|
||||
}
|
||||
.overlay {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: rgba(0,0,0,.5);
|
||||
}
|
||||
'
|
||||
|
||||
main.init()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user