mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
update jquery attr into prop method for checked and disabled properties
This commit is contained in:
@@ -35,10 +35,8 @@
|
||||
|
||||
this.$container.data('selectionnable', this);
|
||||
this.$container.addClass('selectionnable');
|
||||
|
||||
jQuery(this.options.selector, this.$container)
|
||||
.on('click', function (event) {
|
||||
|
||||
this.$container
|
||||
.on('click', this.options.selector, function(event) {
|
||||
if (typeof $this.options.selectStart === 'function') {
|
||||
$this.options.selectStart(jQuery.extend(jQuery.Event('selectStart'), event), $this);
|
||||
}
|
||||
|
@@ -207,7 +207,7 @@ function checkFilters(save) {
|
||||
var nbSelectedColls = 0;
|
||||
$this.find('.checkbas').each(function (idx, el) {
|
||||
nbCols++;
|
||||
if($(this).attr("checked")) {
|
||||
if($(this).prop('checked')) {
|
||||
nbSelectedColls++;
|
||||
nbTotalSelectedColls++;
|
||||
search.bases[sbas_id].push($(this).val());
|
||||
@@ -2780,8 +2780,7 @@ function deploy(deployer, todeploy_selector)
|
||||
}
|
||||
|
||||
function clksbas(el, sbas_id) {
|
||||
var bool = $(el).attr('checked');
|
||||
|
||||
var bool = $(el).prop('checked');
|
||||
$.each($('.sbascont_' + sbas_id + ' :checkbox'), function () {
|
||||
this.checked = bool;
|
||||
});
|
||||
@@ -3055,16 +3054,16 @@ function set_up_feed_box(data) {
|
||||
data: $form.serializeArray(),
|
||||
dataType: 'json',
|
||||
beforeSend: function () {
|
||||
$('button', dialog.getDomElement()).attr('disabled', 'disabled');
|
||||
$('button', dialog.getDomElement()).prop('disabled', true);
|
||||
},
|
||||
error: function () {
|
||||
$('button', dialog.getDomElement()).removeAttr('disabled');
|
||||
$('button', dialog.getDomElement()).prop('disabled', false);
|
||||
},
|
||||
timeout: function () {
|
||||
$('button', dialog.getDomElement()).removeAttr('disabled');
|
||||
$('button', dialog.getDomElement()).prop('disabled', false);
|
||||
},
|
||||
success: function (data) {
|
||||
$('button', dialog.getDomElement()).removeAttr('disabled');
|
||||
$('button', dialog.getDomElement()).prop('disabled', false);
|
||||
if (data.error === true) {
|
||||
alert(data.message);
|
||||
return;
|
||||
|
@@ -1300,16 +1300,16 @@ function replace() {
|
||||
|
||||
var where = $("[name=EditSR_Where]:checked", p4.edit.editBox).val();
|
||||
var commut = "";
|
||||
var rgxp = $("#EditSROptionRX", p4.edit.editBox).attr('checked') ? true : false;
|
||||
var rgxp = $("#EditSROptionRX", p4.edit.editBox).prop('checked') ? true : false;
|
||||
|
||||
var r_search;
|
||||
if (rgxp) {
|
||||
r_search = search;
|
||||
commut = ($("#EditSR_RXG", p4.edit.editBox).attr('checked') ? "g" : "")
|
||||
+ ($("#EditSR_RXI", p4.edit.editBox).attr('checked') ? "i" : "");
|
||||
commut = ($("#EditSR_RXG", p4.edit.editBox).prop('checked') ? "g" : "")
|
||||
+ ($("#EditSR_RXI", p4.edit.editBox).prop('checked') ? "i" : "");
|
||||
}
|
||||
else {
|
||||
commut = $("#EditSR_case", p4.edit.editBox).attr('checked') ? "g" : "gi";
|
||||
commut = $("#EditSR_case", p4.edit.editBox).prop('checked') ? "g" : "gi";
|
||||
r_search = "";
|
||||
for (i = 0; i < search.length; i++) {
|
||||
var c = search.charAt(i);
|
||||
|
Reference in New Issue
Block a user