use $.trim() for IE8

This commit is contained in:
Jörn Friedrich Dreyer 2013-01-30 13:29:24 +01:00
parent 99dfaee1f6
commit 81a398c22c
1 changed files with 2 additions and 2 deletions

View File

@ -874,7 +874,7 @@ var folderDropOptions={
return false;
}
var target=$(this).find('.nametext').text().trim();
var target=$.trim($(this).find('.nametext').text());
var files = ui.helper.find('tr');
$(files).each(function(i,row){
@ -1045,7 +1045,7 @@ function getUniqueName(name){
num=parseInt(numMatch[numMatch.length-1])+1;
base=base.split('(')
base.pop();
base=base.join('(').trim();
base=$.trim(base.join('('));
}
name=base+' ('+num+')';
if (extension) {