Skip to content

Commit

Permalink
Merge pull request sakaiproject#1246 from clhedrick/SAK-30037
Browse files Browse the repository at this point in the history
SAK-30037; make menus work on file helper in select mode
  • Loading branch information
buckett committed Nov 4, 2015
2 parents c980f04 + 365898f commit a4dc066
Showing 1 changed file with 29 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ ul.makeMenu li {
</style>
<![endif]><![endif]-->

<style type="text/css">
table.listHier .attach {
width:auto;
}
#actions {
width:auto;
}
</style>
<script type="text/javascript">includeLatestJQuery('content_filepicker');</script>
<script type="text/JavaScript">
function openCopyrightWindow(theURL,winName,winSettings)
Expand All @@ -55,24 +63,31 @@ ul.makeMenu li {
<script type="text/javascript">
$(document).ready(function() {
jQuery('.portletBody').click(function(e) {

if ( e.target.className !='menuOpen' &&e.target.className !='dropdn' ){
$('.makeMenuChild').hide();
} else {
if( e.target.className =='dropdn' ){
$('.makeMenuChild').hide();
var menuid = $(e.target).parent('li').attr('id');
var menuopen = $('#menu-' + menuid);
if (typeof(menuopen.dialog('instance')) === "undefined") {
menuopen.dialog({
autoOpen: false,
modal: true,
resizable: false,
draggable: false
});
}
menuopen.dialog('open');
} else {
var targetId=e.target.id;
$('.makeMenuChild').hide();
$('#menu-' + targetId).show();
}
}
else
{
if( e.target.className =='dropdn' ){
targetId=$(e.target).parent('li').attr('id');
$('.makeMenuChild').hide();
$('#menu-' + targetId).show();
}
else{

targetId=e.target.id;
$('.makeMenuChild').hide();
$('#menu-' + targetId).show();
}}
});
$('.makeMenuChild').hide();
});
</script>
<div class="portletBody specialLink">
Expand Down

0 comments on commit a4dc066

Please sign in to comment.