Skip to content

Commit

Permalink
LSNBLDR-950 Add resources folder option crash when site title contain…
Browse files Browse the repository at this point in the history
…s slash character (sakaiproject#5352)
  • Loading branch information
juanjmerono authored and ern committed Feb 28, 2018
1 parent 7f4086e commit c81fc66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lessonbuilder/tool/src/webapp/js/folder-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $(function() {
directory = '/' + folderCollectionId.text() + '/';
}
else {
var topFolder = $('#top-folder').text();
var topFolder = encodeURIComponent($('#top-folder').text());
directory = '/' + topFolder + directory;
}
updatePathInput(directory);
Expand All @@ -20,11 +20,11 @@ $(function() {
},
displayRootDirectory: true
});
updatePathInput('/' + $('#top-folder').text() + '/');
updatePathInput('/' + encodeURIComponent($('#top-folder').text()) + '/');

}
});
function updatePathInput(data){
$('#active-folder').val(data);
$('#active-folder').val(unescape(data));
$('#folder-path').val(data);
}

0 comments on commit c81fc66

Please sign in to comment.