diff --git a/.gitignore b/.gitignore index 92f697586..de1273c46 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ *.orig Thumbs.db .DS_Store +*.DS_Store index.yaml routes.py logging.conf diff --git a/applications/admin/static/js/web2py.js b/applications/admin/static/js/web2py.js index 7b9d9802e..c8b5e5857 100644 --- a/applications/admin/static/js/web2py.js +++ b/applications/admin/static/js/web2py.js @@ -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(); diff --git a/applications/examples/static/js/web2py.js b/applications/examples/static/js/web2py.js index 7b9d9802e..c8b5e5857 100644 --- a/applications/examples/static/js/web2py.js +++ b/applications/examples/static/js/web2py.js @@ -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(); diff --git a/applications/welcome/static/js/web2py.js b/applications/welcome/static/js/web2py.js index 7b9d9802e..c8b5e5857 100644 --- a/applications/welcome/static/js/web2py.js +++ b/applications/welcome/static/js/web2py.js @@ -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();