summaryrefslogtreecommitdiffstats
path: root/public/javascripts/context_menu.js
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-09-14 14:17:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-09-14 14:17:52 +0000
commitcc688bb1b1142761e843c30f1f537b693b29542b (patch)
tree9fa043d46e2f9016c48db0d7773d0727d684fa31 /public/javascripts/context_menu.js
parent0b8645007fdf26aff728bdee208ddd1b233e62b8 (diff)
downloadredmine-cc688bb1b1142761e843c30f1f537b693b29542b.tar.gz
redmine-cc688bb1b1142761e843c30f1f537b693b29542b.zip
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
Diffstat (limited to 'public/javascripts/context_menu.js')
-rw-r--r--public/javascripts/context_menu.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js
index a3e1545b2..aee3483ca 100644
--- a/public/javascripts/context_menu.js
+++ b/public/javascripts/context_menu.js
@@ -31,7 +31,7 @@ function contextMenuClick(event) {
// a row was clicked, check if the click was on checkbox
if (target.is('input')) {
// a checkbox may be clicked
- if (target.attr('checked')) {
+ if (target.prop('checked')) {
tr.addClass('context-menu-selection');
} else {
tr.removeClass('context-menu-selection');
@@ -180,7 +180,7 @@ function contextMenuIsSelected(tr) {
}
function contextMenuCheckSelectionBox(tr, checked) {
- tr.find('input[type=checkbox]').attr('checked', checked);
+ tr.find('input[type=checkbox]').prop('checked', checked);
}
function contextMenuClearDocumentSelection() {
@@ -207,13 +207,13 @@ function contextMenuInit(url) {
function toggleIssuesSelection(el) {
var boxes = $(el).parents('form').find('input[type=checkbox]');
var all_checked = true;
- boxes.each(function(){ if (!$(this).attr('checked')) { all_checked = false; } });
+ boxes.each(function(){ if (!$(this).prop('checked')) { all_checked = false; } });
boxes.each(function(){
if (all_checked) {
$(this).removeAttr('checked');
$(this).parents('tr').removeClass('context-menu-selection');
- } else if (!$(this).attr('checked')) {
- $(this).attr('checked', true);
+ } else if (!$(this).prop('checked')) {
+ $(this).prop('checked', true);
$(this).parents('tr').addClass('context-menu-selection');
}
});