FSN#26019 Geen mouseover bij isTouch, is alleen maar lastig
svn path=/Website/trunk/; revision=17354
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user