diff options
Diffstat (limited to 'src/js/share-options.js')
-rwxr-xr-x | src/js/share-options.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/share-options.js b/src/js/share-options.js index 5ea077b..24367c3 100755 --- a/src/js/share-options.js +++ b/src/js/share-options.js @@ -10,7 +10,8 @@ var ShareOptionsBar = function() { this.$shareOptionsBar = $('#share-options-bar'); this.$openBtn = $('.btn-open-shareoptions'); - this.$closeBtn = $('#share-options-mask'); + this.$closeBtn = $('#btn-close-shareoptions'); + this.$body = $('body'); }; ShareOptionsBar.prototype = { @@ -52,7 +53,7 @@ !this.$shareOptionsBar.hasClass('processing')) { // Open the share option bar self.$shareOptionsBar.addClass('processing opened'); - + self.$body.css('overflow', 'hidden'); setTimeout(function() { self.$shareOptionsBar.removeClass('processing'); }, 250); @@ -71,12 +72,11 @@ if (self.$shareOptionsBar.hasClass('opened') && !this.$shareOptionsBar.hasClass('processing')) { // Close the share option bar - self.$shareOptionsBar - .addClass('processing') - .removeClass('opened'); + self.$shareOptionsBar.addClass('processing').removeClass('opened'); setTimeout(function() { self.$shareOptionsBar.removeClass('processing'); + self.$body.css('overflow', ''); }, 250); } } |