diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-09-09 12:41:21 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-09-09 12:41:21 +0200 | 
| commit | 9df085e3522c4a8cd037e1145a667056186f5250 (patch) | |
| tree | d2c54059a8ec11fecbf03c3171223dc5e97bf3e0 /ishtar_common/static | |
| parent | a441a142a5a312025bcc13f4ad783492007e3c20 (diff) | |
| download | Ishtar-9df085e3522c4a8cd037e1145a667056186f5250.tar.bz2 Ishtar-9df085e3522c4a8cd037e1145a667056186f5250.zip  | |
JQuery: live('click') -> on('click')
Diffstat (limited to 'ishtar_common/static')
| -rw-r--r-- | ishtar_common/static/js/ishtar.js | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index b91558194..4d11fcde3 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -56,21 +56,21 @@ $(document).ready(function(){      })  }); -$('#to_bottom_arrow').live('click', function(){ +$(document).on("click", '#to_bottom_arrow', function(){    $("html, body").animate({ scrollTop: $(document).height() }, 1000);  }); -$('#to_top_arrow').live('click', function(){ +$(document).on("click", '#to_top_arrow', function(){    $("html, body").animate({ scrollTop: 0}, 1000);  }); -$('.check-all').live('click', function(){ +$(document).on("click", '.check-all', function(){    $(this).closest('table'          ).find('input:checkbox'          ).attr('checked', $(this).is(':checked'));  }); -$("#main_menu ul li").live('click', function(){ +$(document).on("click", '#main_menu ul li', function(){      var current_id = $(this).attr('id');      console.log(current_id);      $("#main_menu ul ul").not($(this).parents('ul')).not($(this).find('ul') @@ -79,12 +79,12 @@ $("#main_menu ul li").live('click', function(){  });  /* manage help texts */ -$(".help_display").live("click", function(){ +$(document).on("click", '.help_display', function(){      var help_text_id = $(this).attr("href") + "_help";      $(help_text_id).toggle();  }); -$('#progress-content').live('click', function(){ +$(document).on("click", '#progress-content', function(){      $('#progress').hide();  });  | 
