Skip to content
Snippets Groups Projects
Commit 81a398c2 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

use $.trim() for IE8

parent 99dfaee1
No related branches found
No related tags found
No related merge requests found
...@@ -874,7 +874,7 @@ var folderDropOptions={ ...@@ -874,7 +874,7 @@ var folderDropOptions={
return false; return false;
} }
var target=$(this).find('.nametext').text().trim(); var target=$.trim($(this).find('.nametext').text());
var files = ui.helper.find('tr'); var files = ui.helper.find('tr');
$(files).each(function(i,row){ $(files).each(function(i,row){
...@@ -1045,7 +1045,7 @@ function getUniqueName(name){ ...@@ -1045,7 +1045,7 @@ function getUniqueName(name){
num=parseInt(numMatch[numMatch.length-1])+1; num=parseInt(numMatch[numMatch.length-1])+1;
base=base.split('(') base=base.split('(')
base.pop(); base.pop();
base=base.join('(').trim(); base=$.trim(base.join('('));
} }
name=base+' ('+num+')'; name=base+' ('+num+')';
if (extension) { if (extension) {
......
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