Merge pull request #1531 from vinyldarkscratch/master

Mobile (iOS) flash dismissal fix
This commit is contained in:
mdipierro
2016-11-14 08:34:00 -06:00
committed by GitHub
4 changed files with 7 additions and 3 deletions
+1
View File
@@ -13,6 +13,7 @@
*.orig *.orig
Thumbs.db Thumbs.db
.DS_Store .DS_Store
*.DS_Store
index.yaml index.yaml
routes.py routes.py
logging.conf logging.conf
+2 -1
View File
@@ -168,7 +168,8 @@
* and require no dom manipulations * and require no dom manipulations
*/ */
var doc = $(document); var doc = $(document);
doc.on('click', '.w2p_flash', function () { doc.on('click', '.w2p_flash', function (event) {
event.preventDefault();
var t = $(this); var t = $(this);
if (t.css('top') == '0px') t.slideUp('slow'); if (t.css('top') == '0px') t.slideUp('slow');
else t.fadeOut(); else t.fadeOut();
+2 -1
View File
@@ -168,7 +168,8 @@
* and require no dom manipulations * and require no dom manipulations
*/ */
var doc = $(document); var doc = $(document);
doc.on('click', '.w2p_flash', function () { doc.on('click', '.w2p_flash', function (event) {
event.preventDefault();
var t = $(this); var t = $(this);
if (t.css('top') == '0px') t.slideUp('slow'); if (t.css('top') == '0px') t.slideUp('slow');
else t.fadeOut(); else t.fadeOut();
+2 -1
View File
@@ -168,7 +168,8 @@
* and require no dom manipulations * and require no dom manipulations
*/ */
var doc = $(document); var doc = $(document);
doc.on('click', '.w2p_flash', function () { doc.on('click', '.w2p_flash', function (event) {
event.preventDefault();
var t = $(this); var t = $(this);
if (t.css('top') == '0px') t.slideUp('slow'); if (t.css('top') == '0px') t.slideUp('slow');
else t.fadeOut(); else t.fadeOut();