Remove unscroll
This commit is contained in:
parent
5aef0e2185
commit
b63e0b9a3f
@ -1,3 +1,6 @@
|
||||
seaweedchan:
|
||||
- Disable settings removing scroll bar when opened, thus fixing the issue where it jumps up the page randomly
|
||||
|
||||
### 1.1.12 - 2013-05-06
|
||||
detharonil
|
||||
- Support for %Y in time formatting
|
||||
|
||||
@ -9222,16 +9222,12 @@
|
||||
(sectionToOpen ? sectionToOpen : links[0]).click();
|
||||
$.on($('.close', dialog), 'click', Settings.close);
|
||||
$.on(overlay, 'click', Settings.close);
|
||||
d.body.style.width = "" + d.body.clientWidth + "px";
|
||||
$.addClass(d.body, 'unscroll');
|
||||
return $.add(d.body, [overlay, dialog]);
|
||||
},
|
||||
close: function() {
|
||||
if (!Settings.dialog) {
|
||||
return;
|
||||
}
|
||||
d.body.style.removeProperty('width');
|
||||
$.rmClass(d.body, 'unscroll');
|
||||
$.rm(Settings.overlay);
|
||||
$.rm(Settings.dialog);
|
||||
delete Settings.overlay;
|
||||
|
||||
@ -9243,16 +9243,12 @@
|
||||
(sectionToOpen ? sectionToOpen : links[0]).click();
|
||||
$.on($('.close', dialog), 'click', Settings.close);
|
||||
$.on(overlay, 'click', Settings.close);
|
||||
d.body.style.width = "" + d.body.clientWidth + "px";
|
||||
$.addClass(d.body, 'unscroll');
|
||||
return $.add(d.body, [overlay, dialog]);
|
||||
},
|
||||
close: function() {
|
||||
if (!Settings.dialog) {
|
||||
return;
|
||||
}
|
||||
d.body.style.removeProperty('width');
|
||||
$.rmClass(d.body, 'unscroll');
|
||||
$.rm(Settings.overlay);
|
||||
$.rm(Settings.dialog);
|
||||
delete Settings.overlay;
|
||||
|
||||
@ -9227,16 +9227,12 @@
|
||||
(sectionToOpen ? sectionToOpen : links[0]).click();
|
||||
$.on($('.close', dialog), 'click', Settings.close);
|
||||
$.on(overlay, 'click', Settings.close);
|
||||
d.body.style.width = "" + d.body.clientWidth + "px";
|
||||
$.addClass(d.body, 'unscroll');
|
||||
return $.add(d.body, [overlay, dialog]);
|
||||
},
|
||||
close: function() {
|
||||
if (!Settings.dialog) {
|
||||
return;
|
||||
}
|
||||
d.body.style.removeProperty('width');
|
||||
$.rmClass(d.body, 'unscroll');
|
||||
$.rm(Settings.overlay);
|
||||
$.rm(Settings.dialog);
|
||||
delete Settings.overlay;
|
||||
|
||||
@ -78,14 +78,10 @@ Settings =
|
||||
$.on $('.close', dialog), 'click', Settings.close
|
||||
$.on overlay, 'click', Settings.close
|
||||
|
||||
d.body.style.width = "#{d.body.clientWidth}px"
|
||||
$.addClass d.body, 'unscroll'
|
||||
$.add d.body, [overlay, dialog]
|
||||
|
||||
close: ->
|
||||
return unless Settings.dialog
|
||||
d.body.style.removeProperty 'width'
|
||||
$.rmClass d.body, 'unscroll'
|
||||
$.rm Settings.overlay
|
||||
$.rm Settings.dialog
|
||||
delete Settings.overlay
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user