Add timeout before running script on window load
This commit is contained in:
parent
a9343e9a82
commit
4403ca3504
|
@ -29,10 +29,12 @@
|
|||
<% if @edit %>
|
||||
<script>
|
||||
$(window).load(function() {
|
||||
setTimeout(function(){
|
||||
$('a').not('.nav').on('click', function(e){
|
||||
e.preventDefault();
|
||||
});
|
||||
$('a').not('.nav').css("cursor", "default");
|
||||
}, 200);
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
|
|
Loading…
Reference in New Issue