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