Skip to content

Commit

Permalink
IE8: fix namespace selection in link wizard FS#2391
Browse files Browse the repository at this point in the history
IE8 can't substr() with negative offsets.
  • Loading branch information
splitbrain committed Nov 27, 2011
1 parent 29a277b commit 2e9c518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scripts/linkwiz.js
Expand Up @@ -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')) {
Expand Down

0 comments on commit 2e9c518

Please sign in to comment.