FSN#26019 Geen mouseover bij isTouch, is alleen maar lastig

svn path=/Website/trunk/; revision=17354
This commit is contained in:
Jos Groot Lipman
2013-03-25 16:15:25 +00:00
parent b6b14cd655
commit 90117cb936
2 changed files with 13 additions and 7 deletions

View File

@@ -71,17 +71,22 @@ function loadInlineDetails(url)
$("#tdinline").load(url, largerWhenInIFrame);
}
function initActions(tableID)
// forTouch doen we geen mouseover's. Die maken dat je veel te veel moet klikken
function initActions(tableID, isTouch)
{
$(function () {
$("#" + tableID)
.on('mouseover', 'tr', showActions)
.on('mouseout', 'tr', hideActions)
.on('click', 'tr', defaultAction)
.on('click', '.multiselect', FcltMgr.stopPropagation );
$("#allactions_" + tableID +".allactions")
.on('mouseover', function (evt) { evt.stopPropagation() } )
.on('mouseout', function (evt) { evt.stopPropagation() } )
if (!isTouch)
{
$("#" + tableID)
.on('mouseover', 'tr', showActions)
.on('mouseout', 'tr', hideActions);
$("#allactions_" + tableID +".allactions")
.on('mouseover', function (evt) { evt.stopPropagation() } )
.on('mouseout', function (evt) { evt.stopPropagation() } )
}
});
}
@@ -98,6 +103,7 @@ function $currentActionsDiv()
function defaultAction(event)
{
var key = this.getAttribute("ROWKEY");
window.activerow = this;
var $actiondiv = $currentActionsDiv();
if (!key)
{