Skip to content
Snippets Groups Projects
Commit 2e9c5188 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

IE8: fix namespace selection in link wizard FS#2391

IE8 can't substr() with negative offsets.
parent 29a277ba
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ var dw_linkwiz = {
*/
resultClick: function(a){
dw_linkwiz.$entry.val(a.title);
if(a.title == '' || a.title.substr(-1) == ':'){
if(a.title == '' || a.title.substr(a.title.length-1) == ':'){
dw_linkwiz.autocomplete_exec();
}else{
if (jQuery(a.nextSibling).is('span')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment