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,
|
data,
|
||||||
FcltCallbackAndThen(function() {
|
FcltCallbackAndThen(function() {
|
||||||
$.each(rowArray, function() { $(this).remove() });
|
$.each(rowArray, function() { $(this).remove() });
|
||||||
toggleFooter.apply(tableID);
|
toggleFooter(tableID);
|
||||||
}),
|
}),
|
||||||
"json");
|
"json");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -182,9 +182,10 @@ function initActions(tableID, hambType)
|
|||||||
{
|
{
|
||||||
useHamb = hambType;
|
useHamb = hambType;
|
||||||
$(function () {
|
$(function () {
|
||||||
|
toggleFooter(tableID);
|
||||||
$("#" + tableID)
|
$("#" + tableID)
|
||||||
.on('click', '.multiselect', FcltMgr.stopPropagation)
|
.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
|
if (hambType == 0) // No hamburger, just mouseOver
|
||||||
{
|
{
|
||||||
$("#" + tableID)
|
$("#" + tableID)
|
||||||
@@ -229,11 +230,11 @@ function $currentActionsDiv()
|
|||||||
return $("#allactions_" + tbl[0].id +".allactions");
|
return $("#allactions_" + tbl[0].id +".allactions");
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleFooter()
|
function toggleFooter(tableID)
|
||||||
{
|
{
|
||||||
var show = false;
|
var show = false;
|
||||||
var nn = $("#" + this).find(".multiselect:checked").length;
|
var nn = $("#" + tableID).find(".multiselect:checked").length;
|
||||||
var footerButtons = $("#" + this).find("#multiactiondiv");
|
var footerButtons = $("#" + tableID).find("#multiactiondiv");
|
||||||
if (nn)
|
if (nn)
|
||||||
{
|
{
|
||||||
footerButtons.css('visibility','visible');
|
footerButtons.css('visibility','visible');
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ function resMultiDelete(rowArray)
|
|||||||
protectRequest.dataToken(data);
|
protectRequest.dataToken(data);
|
||||||
$.post("res_delete_save.asp?rsv_ruimte_key="+res_key_arr[i], data, FcltCallbackAndThen(function (i) { return function() {
|
$.post("res_delete_save.asp?rsv_ruimte_key="+res_key_arr[i], data, FcltCallbackAndThen(function (i) { return function() {
|
||||||
$(rowArray).eq(i).remove();
|
$(rowArray).eq(i).remove();
|
||||||
toggleFooter.apply(tableID);
|
toggleFooter(tableID);
|
||||||
}
|
}
|
||||||
}(i)), "json");
|
}(i)), "json");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user