fixed jQuery dprecations
This commit is contained in:
4
dist/inputs-ext/typeaheadjs/lib/typeahead.js
vendored
4
dist/inputs-ext/typeaheadjs/lib/typeahead.js
vendored
@@ -124,10 +124,10 @@
|
||||
};
|
||||
},
|
||||
tokenizeQuery: function(str) {
|
||||
return $.trim(str).toLowerCase().split(/[\s]+/);
|
||||
return str.trim().toLowerCase().split(/[\s]+/);
|
||||
},
|
||||
tokenizeText: function(str) {
|
||||
return $.trim(str).toLowerCase().split(/[\s\-_]+/);
|
||||
return str.trim().toLowerCase().split(/[\s\-_]+/);
|
||||
},
|
||||
getProtocol: function() {
|
||||
return location.protocol;
|
||||
|
4
dist/inputs-ext/wysihtml5/wysihtml5.js
vendored
4
dist/inputs-ext/wysihtml5/wysihtml5.js
vendored
@@ -90,9 +90,9 @@ $(function(){
|
||||
},
|
||||
|
||||
isEmpty: function($element) {
|
||||
if($.trim($element.html()) === '') {
|
||||
if($element.html().trim() === '') {
|
||||
return true;
|
||||
} else if($.trim($element.text()) !== '') {
|
||||
} else if($element.text().trim() !== '') {
|
||||
return false;
|
||||
} else {
|
||||
//e.g. '<img>', '<br>', '<p></p>'
|
||||
|
Reference in New Issue
Block a user