summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-09-14 14:16:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-09-14 14:16:56 +0000
commit0b8645007fdf26aff728bdee208ddd1b233e62b8 (patch)
tree7bdca2823a4aadd04403f166083effc39e5d2da4 /public/javascripts
parent98589f0ecda40cf957d2d6fa62c9201737061d21 (diff)
downloadredmine-0b8645007fdf26aff728bdee208ddd1b233e62b8.tar.gz
redmine-0b8645007fdf26aff728bdee208ddd1b233e62b8.zip
Backport r13315 from rails-4.1 to trunk.
Use .on() instead of .live(). git-svn-id: http://svn.redmine.org/redmine/trunk@13407 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index fdf5c477b..03330c88a 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -81,13 +81,13 @@ function initFilters() {
$('#filters-table td.field input[type=checkbox]').each(function() {
toggleFilter($(this).val());
});
- $('#filters-table td.field input[type=checkbox]').live('click', function() {
+ $('#filters-table').on('click', 'td.field input[type=checkbox]', function() {
toggleFilter($(this).val());
});
- $('#filters-table .toggle-multiselect').live('click', function() {
+ $('#filters-table').on('click', '.toggle-multiselect', function() {
toggleMultiSelect($(this).siblings('select'));
});
- $('#filters-table input[type=text]').live('keypress', function(e) {
+ $('#filters-table').on('keypress', 'input[type=text]', function(e) {
if (e.keyCode == 13) submit_query_form("query_form");
});
}
@@ -537,10 +537,10 @@ function initMyPageSortable(list, url) {
var warnLeavingUnsavedMessage;
function warnLeavingUnsaved(message) {
warnLeavingUnsavedMessage = message;
- $('form').live('submit', function(){
+ $(document).on('submit', 'form', function(){
$('textarea').removeData('changed');
});
- $('textarea').live('change', function(){
+ $(document).on('change', 'textarea', function(){
$(this).data('changed', 'changed');
});
window.onbeforeunload = function(){