Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
BUG: Refs #0483. Fixed the item action menu in folder view.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhengZ committed Jan 24, 2012
1 parent 2d37b9e commit 231621f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/public/js/common/common.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,13 @@ midas.createAction = function (node) {
}
if(type == 'item') {
var from = midas.parentOf(node);
var fromFolder = from.attr('element');
// we are in a subfolder view and the parent is the current folder
if(from) {
var fromFolder = from.attr('element');
}
else {
var fromFolder = json.folder.folder_id;
}
html += '<li><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/view.png"/> <a href="'+json.global.webroot+'/item/'+element+'">'+json.browse.view+'</a></li>';
html += '<li><img alt="" src="'+json.global.coreWebroot+'/public/images/icons/download.png"/> <a href="'+json.global.webroot+'/download?items='+element+'">'+json.browse.downloadLatest+'</a></li>';
if (policy>=2) {
Expand Down

0 comments on commit 231621f

Please sign in to comment.