Update jQuery .live() usage to .on()

pull/1252/head
Alex Coles 11 years ago
parent fa0bb2d7c4
commit c0174a8eae
  1. 2
      app/assets/javascripts/application.js.erb

@ -126,7 +126,7 @@ jQuery(document).ready(function ($) {
$.datepicker.setDefaults(defaults);
}
$('#show_more_wp_properties').live('click', function(el){
$(document).on('click', '#show_more_wp_properties', function(el){
$(this).find('.icon').toggleClass('icon-arrow-right6-3 icon-arrow-right6-1');
Effect.toggle("work_package_descr_fields", "appear", {duration:0.3});
enable_textarea_auto_completion(jQuery("#work_package_description"));

Loading…
Cancel
Save