mirror of
https://github.com/redmine/redmine.git
synced 2025-11-18 03:00:52 +01:00
Backport r13313 from rails-4.1 to trunk.
Upgrade to JQuery 1.11.1 git-svn-id: http://svn.redmine.org/redmine/trunk@13408 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Copyright (C) 2006-2014 Jean-Philippe Lang */
|
||||
|
||||
function checkAll(id, checked) {
|
||||
$('#'+id).find('input[type=checkbox]:enabled').attr('checked', checked);
|
||||
$('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked);
|
||||
}
|
||||
|
||||
function toggleCheckboxesBySelector(selector) {
|
||||
@@ -10,7 +10,7 @@ function toggleCheckboxesBySelector(selector) {
|
||||
$(selector).each(function(index) {
|
||||
if (!$(this).is(':checked')) { all_checked = false; }
|
||||
});
|
||||
$(selector).attr('checked', !all_checked);
|
||||
$(selector).prop('checked', !all_checked);
|
||||
}
|
||||
|
||||
function showAndScrollTo(id, focus) {
|
||||
@@ -100,7 +100,7 @@ function addFilter(field, operator, values) {
|
||||
} else {
|
||||
buildFilterRow(field, operator, values);
|
||||
}
|
||||
$('#cb_'+fieldId).attr('checked', true);
|
||||
$('#cb_'+fieldId).prop('checked', true);
|
||||
toggleFilter(field);
|
||||
$('#add_filter_select').val('').children('option').each(function() {
|
||||
if ($(this).attr('value') == field) {
|
||||
@@ -555,12 +555,12 @@ function warnLeavingUnsaved(message) {
|
||||
}
|
||||
|
||||
function setupAjaxIndicator() {
|
||||
$('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) {
|
||||
$(document).bind('ajaxSend', function(event, xhr, settings) {
|
||||
if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') {
|
||||
$('#ajax-indicator').show();
|
||||
}
|
||||
});
|
||||
$('#ajax-indicator').bind('ajaxStop', function() {
|
||||
$(document).bind('ajaxStop', function() {
|
||||
$('#ajax-indicator').hide();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user