FSN#38071 hamburger -> verticale inline actions ipv horizontaal

svn path=/Website/trunk/; revision=31267
This commit is contained in:
2016-10-27 13:23:02 +00:00
parent eaa1aef38d
commit e061159229
2 changed files with 8 additions and 5 deletions

View File

@@ -252,7 +252,7 @@ function showActions(event) // event op de mouseover van resultsettable
}
});
$actiondiv.css('top', $(this).offset().top + $(this).outerHeight() - $actiondiv.outerHeight() - 5 + "px");
$actiondiv.css('top', $(this).offset().top + $(this).outerHeight() - $actiondiv.outerHeight() - (touch?10:5) + "px");
if (!anyShow)
{
$actiondiv.hide();

View File

@@ -219,11 +219,12 @@ ResultsetTable.prototype.addAction = __rsAddAction;
function __rsAddAction(params)
{
/*
/* Nu ook inline actions bij PDA (hamburger)
if (device.test(device.isTouch) && !params.isDefault) {
params.single = false; // touch heeft geen mouseover. Dan alleen de default onclick
}
Nu ook actions bij PDA (hamburger)
*/
this.actions.push(params);
@@ -699,14 +700,16 @@ function __rsProcessResultset(processParams) // processParams wordt blind aan al
var def = (this.actions[i].isDefault? " isdefault='1'" : "")
+ (this.actions[i].onlyMulti? " onlymulti='1'" : "")
+ (this.actions[i].isDefault || this.actions[i].onlyMulti? " style='display:none'" : "");
var disp = device.test(device.isTouch) ? " style='display: block;'" : "";
if (this.actions[i].multiOnce)
val = "\n<span class='ia2' " + def + " onclick='doAm(event, this, \"" + this.actions[i].action + "\")'>";
val = "\n<span class='ia2' " + def + " onclick='doAm(event, this, \"" + this.actions[i].action + "\")'" + disp + ">";
else
val = "\n<span class='ia2' " + def + " onclick='doA(event, this, \"" + this.actions[i].action + "\")'>";
val = "\n<span class='ia2' " + def + " onclick='doA(event, this, \"" + this.actions[i].action + "\")'" + disp + ">";
actionsDiv += val + this.actions[i].caption + "</span>";
}
hasInlineActions = aantalInline > 0;
if (hasInlineActions) hasActionsCol++;
if (device.test(device.isTouch)) hasActionsCol = anyMultiActions ? 2 : 1;
html += "\n<div id='allactions_" + ID + "' class='allactions' style='display:none' hasActionsCol='"+hasActionsCol+"' >" + actionsDiv + "</div>";
html += "\n<script type='text/javascript'>"
html += "\n initActions('" + this.ID + "', "+(device.test(device.isTouch)?1:0)+")"