Skip to content
Snippets Groups Projects
Commit b0f877ce authored by Ahmed Eldesoky's avatar Ahmed Eldesoky
Browse files

Update referenced-entity-modal.js

parent 7269d1d2
Branches
Tags 8.x-1.0
1 merge request!2Issue:3287341 - Drupal 10 Compatiblity support.
......@@ -42,7 +42,11 @@ Drupal.behaviors.reference_entity_modal = {
var target = input.substr(index,last - index + 1);
var splitted = input.split(" " + target);
if(target.length != 0 && parseInt(target.substr(1,target.length - 2))){
return splitted.join("");
var joined = splitted.join("");
if(splitted[splitted.length -1] == '"' && splitted[0].substr(0,1) == '"'){
var joined = splitted[0].substr(1);
}
return joined;
}
else{
return input;
......@@ -89,3 +93,4 @@ Drupal.behaviors.reference_entity_modal = {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment