Skip to content

Commit

Permalink
Merge pull request web2py#1531 from vinyldarkscratch/master
Browse files Browse the repository at this point in the history
Mobile (iOS) flash dismissal fix
  • Loading branch information
mdipierro authored Nov 14, 2016
2 parents c72330f + e19435d commit ad9ebea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*.orig
Thumbs.db
.DS_Store
*.DS_Store
index.yaml
routes.py
logging.conf
Expand Down
3 changes: 2 additions & 1 deletion applications/admin/static/js/web2py.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
* and require no dom manipulations
*/
var doc = $(document);
doc.on('click', '.w2p_flash', function () {
doc.on('click', '.w2p_flash', function (event) {
event.preventDefault();
var t = $(this);
if (t.css('top') == '0px') t.slideUp('slow');
else t.fadeOut();
Expand Down
3 changes: 2 additions & 1 deletion applications/examples/static/js/web2py.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
* and require no dom manipulations
*/
var doc = $(document);
doc.on('click', '.w2p_flash', function () {
doc.on('click', '.w2p_flash', function (event) {
event.preventDefault();
var t = $(this);
if (t.css('top') == '0px') t.slideUp('slow');
else t.fadeOut();
Expand Down
3 changes: 2 additions & 1 deletion applications/welcome/static/js/web2py.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
* and require no dom manipulations
*/
var doc = $(document);
doc.on('click', '.w2p_flash', function () {
doc.on('click', '.w2p_flash', function (event) {
event.preventDefault();
var t = $(this);
if (t.css('top') == '0px') t.slideUp('slow');
else t.fadeOut();
Expand Down

0 comments on commit ad9ebea

Please sign in to comment.