Merge pull request #1531 from vinyldarkscratch/master
Mobile (iOS) flash dismissal fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user