Commit 91e2a39e by Giulio Gratta

moving preventDefault() statements to the local script tag

parent 87362aa8
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</form> </form>
</div> </div>
<a href="preventDefault();" class="close-modal" title="Close Modal"> <a href="#" class="close-modal" title="Close Modal">
<div class="inner"> <div class="inner">
<p>&#10005;</p> <p>&#10005;</p>
</div> </div>
...@@ -40,5 +40,10 @@ ...@@ -40,5 +40,10 @@
$('#pwd_error').stop().css("display", "block"); $('#pwd_error').stop().css("display", "block");
} }
}); });
// removing close link's default behavior
$('#login-modal .close-modal').click(function(e) {
e.preventDefault();
});
})(this) })(this)
</script> </script>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
% endif % endif
</section> </section>
<a href="preventDefault();" class="close-modal" title="Close Modal"> <a href="#" class="close-modal" title="Close Modal">
<div class="inner"> <div class="inner">
<p>&#10005;</p> <p>&#10005;</p>
</div> </div>
...@@ -62,5 +62,10 @@ ...@@ -62,5 +62,10 @@
$('#login_error').html(json.value).stop().css("display", "block"); $('#login_error').html(json.value).stop().css("display", "block");
} }
}); });
// removing close link's default behavior
$('#login-modal .close-modal').click(function(e) {
e.preventDefault();
});
})(this) })(this)
</script> </script>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</div> </div>
<a href="preventDefault();" class="close-modal" title="Close Modal"> <a href="#" class="close-modal" title="Close Modal">
<div class="inner"> <div class="inner">
<p>&#10005;</p> <p>&#10005;</p>
</div> </div>
...@@ -134,5 +134,10 @@ ...@@ -134,5 +134,10 @@
$("[data-field='"+json.field+"']").addClass('field-error') $("[data-field='"+json.field+"']").addClass('field-error')
} }
}); });
// removing close link's default behavior
$('#login-modal .close-modal').click(function(e) {
e.preventDefault();
});
})(this) })(this)
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment