You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
ctrl.searchInput.on('paste',function(e){vardata=e.originalEvent.clipboardData.getData('text/plain');console.log(data);console.log(data.length);console.log(ctrl.taggingTokens);console.log(ctrl.tagging);if(data&&data.length>0&&ctrl.taggingTokens.isActivated&&ctrl.tagging.fct){console.log(ctrl.taggingTokens.tokens);varitems=data.split(ctrl.taggingTokens.tokens[0]);// split by first token onlyconsole.log(items);if(items&&items.length>0){angular.forEach(items,function(item){varnewItem=ctrl.tagging.fct(item);if(newItem){ctrl.select(newItem,true);}});e.preventDefault();e.stopPropagation();}}});
could be changed to
ctrl.searchInput.on('paste',function(e){vardata=e.originalEvent.clipboardData.getData('text/plain');console.log(data);console.log(data.length);console.log(ctrl.taggingTokens);console.log(ctrl.tagging);if(data&&data.length>0&&ctrl.taggingTokens.isActivated){// LINE CHANGEDconsole.log(ctrl.taggingTokens.tokens);varitems=data.split(ctrl.taggingTokens.tokens[0]);// split by first token onlyconsole.log(items);if(items&&items.length>0){angular.forEach(items,function(item){varnewItem=item.trim();// ADDEDif(ctrl.tagging.fct){// ADDEDnewItem=ctrl.tagging.fct(item);}if(newItem){ctrl.select(newItem,true);}});e.preventDefault();e.stopPropagation();}}});
and it appears to work without incident.
I confess that I do not know what fct is supposed to do.
attrs.$observe('tagging',function(){if(attrs.tagging!==undefined){// $eval() is needed otherwise we get a string instead of a booleanvartaggingEval=scope.$eval(attrs.tagging);$select.tagging={isActivated: true,fct: taggingEval!==true ? taggingEval : undefined};}else{$select.tagging={isActivated: false,fct: undefined};}});
It is set here, which doesn't make a lot of sense to me.
The text was updated successfully, but these errors were encountered:
could be changed to
and it appears to work without incident.
I confess that I do not know what fct is supposed to do.
It is set here, which doesn't make a lot of sense to me.
The text was updated successfully, but these errors were encountered: