FSN#36126 Bij multi-add mis je direct multi-delete
svn path=/Website/trunk/; revision=32892
This commit is contained in:
@@ -19,7 +19,7 @@ function bezDelete(rowArray, isMulti)
|
||||
data,
|
||||
FcltCallbackAndThen(function() {
|
||||
$.each(rowArray, function() { $(this).remove() });
|
||||
toggleFooter.apply(tableID);
|
||||
toggleFooter(tableID);
|
||||
}),
|
||||
"json");
|
||||
});
|
||||
|
||||
@@ -182,9 +182,10 @@ function initActions(tableID, hambType)
|
||||
{
|
||||
useHamb = hambType;
|
||||
$(function () {
|
||||
toggleFooter(tableID);
|
||||
$("#" + tableID)
|
||||
.on('click', '.multiselect', FcltMgr.stopPropagation)
|
||||
.on('click', '.multiselect', function() { toggleFooter.apply(tableID) } );
|
||||
.on('click', '.multiselect', function() { toggleFooter(tableID) } );
|
||||
if (hambType == 0) // No hamburger, just mouseOver
|
||||
{
|
||||
$("#" + tableID)
|
||||
@@ -229,11 +230,11 @@ function $currentActionsDiv()
|
||||
return $("#allactions_" + tbl[0].id +".allactions");
|
||||
}
|
||||
|
||||
function toggleFooter()
|
||||
function toggleFooter(tableID)
|
||||
{
|
||||
var show = false;
|
||||
var nn = $("#" + this).find(".multiselect:checked").length;
|
||||
var footerButtons = $("#" + this).find("#multiactiondiv");
|
||||
var nn = $("#" + tableID).find(".multiselect:checked").length;
|
||||
var footerButtons = $("#" + tableID).find("#multiactiondiv");
|
||||
if (nn)
|
||||
{
|
||||
footerButtons.css('visibility','visible');
|
||||
|
||||
@@ -34,7 +34,7 @@ function resMultiDelete(rowArray)
|
||||
protectRequest.dataToken(data);
|
||||
$.post("res_delete_save.asp?rsv_ruimte_key="+res_key_arr[i], data, FcltCallbackAndThen(function (i) { return function() {
|
||||
$(rowArray).eq(i).remove();
|
||||
toggleFooter.apply(tableID);
|
||||
toggleFooter(tableID);
|
||||
}
|
||||
}(i)), "json");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user