Permalink
Browse files

fix(js): replace deprecated jquery .attr usage with .prop

ref #9511
  • Loading branch information...
jdalsem committed Apr 14, 2016
1 parent 4c7b8b6 commit a95ecc6c854ebf236eea56666f0116ead91154ba
Showing with 3 additions and 3 deletions.
  1. +2 −2 mod/thewire/views/default/thewire.js
  2. +1 −1 views/default/elgg/UserPicker.js
@@ -30,11 +30,11 @@ elgg.thewire.textCounter = function(textarea, status, limit) {
if (remaining_chars < 0) {
status.parent().addClass("thewire-characters-remaining-warning");
$("#thewire-submit-button").attr('disabled', 'disabled');
$("#thewire-submit-button").prop('disabled', true);
$("#thewire-submit-button").addClass('elgg-state-disabled');
} else {
status.parent().removeClass("thewire-characters-remaining-warning");
$("#thewire-submit-button").removeAttr('disabled', 'disabled');
$("#thewire-submit-button").prop('disabled', false);
$("#thewire-submit-button").removeClass('elgg-state-disabled');
}
};
@@ -34,7 +34,7 @@ define(['jquery', 'elgg', 'jquery.ui.autocomplete.html'], function ($, elgg) {
elgg.get(self.handler, {
data: {
term: this.term,
"match_on[]": ($('[name=match_on]', self.$wrapper).attr('checked') ? 'friends' : 'users'),
"match_on[]": ($('[name=match_on]', self.$wrapper).prop('checked') ? 'friends' : 'users'),
name: self.name
},
dataType: 'json',

0 comments on commit a95ecc6

Please sign in to comment.