Skip to content
Snippets Groups Projects
Commit 907af195 authored by aydreeihn's avatar aydreeihn
Browse files

IE compatibility fixes:

- upgrade select2
- use indexOf instead of includes
parent 7e91892f
Branches
Tags
No related merge requests found
...@@ -1195,7 +1195,7 @@ $(function() { ...@@ -1195,7 +1195,7 @@ $(function() {
var target = e.currentTarget.id; var target = e.currentTarget.id;
var addTo = (target == 'cc_users') ? 'addcc' : 'addbcc'; var addTo = (target == 'cc_users') ? 'addcc' : 'addbcc';
if(el.val().includes("NEW")) { if(el.val().indexOf("NEW") > -1) {
$("li[title='— Add New —']").remove(); $("li[title='— Add New —']").remove();
var url = 'ajax.php/thread/' + tid + '/add-collaborator/' + addTo ; var url = 'ajax.php/thread/' + tid + '/add-collaborator/' + addTo ;
$.userLookup(url, function(user) { $.userLookup(url, function(user) {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment