mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[start page] support 'link' element in 'disable' method
This commit is contained in:
@ -39,11 +39,14 @@
|
||||
|
||||
$.fn.extend({
|
||||
disable: function(state) {
|
||||
$(this).prop('disabled', state);
|
||||
if ( this.is('a') ) {
|
||||
state ? this.attr('disabled', 'disabled') : this.removeAttr('disabled');
|
||||
} else $(this).prop('disabled', state);
|
||||
|
||||
return this;
|
||||
},
|
||||
isdisabled: function() {
|
||||
return !!$(this).prop('disabled');
|
||||
return !this.is('a') ? !!$(this).prop('disabled') : !!this.attr('disabled');
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user