svn path=/Website/trunk/; revision=31506
This commit is contained in:
@@ -169,6 +169,7 @@ function initActions(tableID, hambType)
|
||||
else
|
||||
{
|
||||
$(document).add(parent.document).add(parent.parent.document).click(defaultHamburgerAction);
|
||||
$(document).ready(willHide);
|
||||
$("#" + tableID)
|
||||
.on('click', 'tr', defaultHamburgerAction)
|
||||
.on('mouseover', 'tr', hambSetCursor);
|
||||
@@ -190,18 +191,6 @@ function initActions(tableID, hambType)
|
||||
});
|
||||
}
|
||||
|
||||
function defaultHamburgerAction(event)
|
||||
{
|
||||
var thisTR = $(this).closest('tr')[0];
|
||||
|
||||
if (!$('li.byHamburger').hasClass('hidden'))
|
||||
$('li.byHamburger').toggleClass('hidden');
|
||||
else if ($currentActionsDiv().css('display') != "none")
|
||||
hideActions.apply(thisTR, [event]);
|
||||
else if (!!$(event.currentTarget).attr("ROWKEY"))
|
||||
defaultAction.apply(thisTR, [event]);
|
||||
}
|
||||
|
||||
function $currentActionsDiv()
|
||||
{
|
||||
var tbl = $(window.activerow).closest("table.rstable");
|
||||
@@ -211,6 +200,28 @@ function $currentActionsDiv()
|
||||
return $("#allactions_" + tbl[0].id +".allactions");
|
||||
}
|
||||
|
||||
function willHide()
|
||||
{
|
||||
$("li#printhamburger").each(function() {
|
||||
var attribute = $(this).attr('fcltclick');
|
||||
if (attribute)
|
||||
$(this).attr('fcltclick', attribute + "hideActions();");
|
||||
});
|
||||
}
|
||||
|
||||
function defaultHamburgerAction(event)
|
||||
{
|
||||
var thisTR = $(this).closest('tr')[0];
|
||||
|
||||
if ($('li.byHamburger').length > 0 && !($('li.byHamburger').hasClass('hidden')))
|
||||
$('li.byHamburger').toggleClass('hidden');
|
||||
|
||||
hideActions.apply(thisTR, [event]);
|
||||
|
||||
if (!!$(event.currentTarget).attr("ROWKEY"))
|
||||
defaultAction.apply(thisTR, [event]);
|
||||
}
|
||||
|
||||
function defaultAction(event)
|
||||
{
|
||||
var key = this.getAttribute("ROWKEY");
|
||||
|
||||
@@ -95,7 +95,7 @@ function CreateButtons(buttons, params)
|
||||
if (hamburger && !params.isDialog)
|
||||
{
|
||||
var btn = { icon: "fa-bars", tooltip: L("lcl_more"), id: "printhamburger",
|
||||
action: "$('li.byHamburger').toggleClass('hidden');FcltMgr.resized();hideActions();" }
|
||||
action: "$('li.byHamburger').toggleClass('hidden');FcltMgr.resized();" }
|
||||
CreateButton(null, btn.action, btn, params );
|
||||
}
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user