better method to obtain the folderName

This commit is contained in:
geogolem
2017-03-11 01:37:50 -05:00
parent e6dfd89300
commit 05a83e4e95
3 changed files with 9 additions and 2 deletions
@@ -137,8 +137,7 @@ module.exports = Marionette.ItemView.extend({
if (rootFolder !== 'noChange') {
var rootFolderPath = RootFolders.get(parseInt(rootFolder, 10));
var currentPath = m.get('path');
var folderName = currentPath.substring(currentPath.lastIndexOf('\\')+1);
var folderName = m.get('folderName');
m.set('path', rootFolderPath.get('path')+ folderName);
}
}