},
saveNewFolder: function Ui_saveNewFolder(e) {
- var folderName = $('#newFolderName').val().trim(), status = true,
+ var folderName = $('#newFolderName').val(), status = true,
open = function () {
$("#addFolderPopup").popup('open', {
positionTo: "window"
$('#fileList').empty();
for (i = 0; i < len; i = i + 1) {
- nodeName = nodes[i].label.trim();
+ nodeName = nodes[i].label;
if (nodeName !== ''
&& (nodes[i].type === 0 || nodes[i].type === 'INTERNAL')
&& nodeName.indexOf('wgt-') === -1