Remove ES6-specific syntax in amsify suggestags
It was causing JavaScript to stop working completely on old browsers which don't support this syntax.
This commit is contained in:
@@ -506,7 +506,11 @@ var AmsifySuggestags;
|
|||||||
return listHTML;
|
return listHTML;
|
||||||
},
|
},
|
||||||
|
|
||||||
addTag : function(value, animate=true) {
|
addTag : function(value, animate) {
|
||||||
|
if(animate === undefined) {
|
||||||
|
animate = true;
|
||||||
|
}
|
||||||
|
|
||||||
if(!value) {
|
if(!value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -624,7 +628,11 @@ var AmsifySuggestags;
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
removeTag: function(value, animate=true) {
|
removeTag: function(value, animate) {
|
||||||
|
if(animate === undefined) {
|
||||||
|
animate = true;
|
||||||
|
}
|
||||||
|
|
||||||
var _self = this;
|
var _self = this;
|
||||||
$findTags = $(this.selectors.inputArea).find('[data-val="'+value+'"]');
|
$findTags = $(this.selectors.inputArea).find('[data-val="'+value+'"]');
|
||||||
if($findTags.length) {
|
if($findTags.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user