Skip to content

Commit c43074c

Browse files
committed
Disabled create new labels when adding leads, contacts, etc
1 parent 0d99007 commit c43074c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resources/assets/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const appJquery = function() {
6868
$('select[name="labels[]"]').select2({
6969
tags: true,
7070
tokenSeparators: [','],
71-
createTag: function (params) {
71+
/*createTag: function (params) {
7272
var term = params.term;
7373
7474
if (term === '') {
@@ -78,9 +78,9 @@ const appJquery = function() {
7878
return {
7979
id: 'new_label_' + term,
8080
text: term,
81-
newTag: true // add additional parameters
81+
newTag: true
8282
}
83-
}
83+
}*/
8484
});
8585

8686
if(typeof products !== 'undefined'){

0 commit comments

Comments
 (0)