I am working with an application that uses jqgrid and highslide...
My problem is when I open the highslide popup and submit an action i have to reload some tables to refresh de info added but if I open the popup and close it with out apply any change I dont need to refresh my tables in the background
- Code: Select all
hs.Expander.prototype.onAfterClose = function() {
//alert(console.log);
var deploID = $('input[name="HiddenDID"]').val();
var clienID = $('input[name="HiddenCID"]').val();
$('#deploymentTable').load('deploymentTable.php?client_id=' + clienID);
$('#hostTable').load('hostsTable.php?deployment_id=' + deploID);
$('#availablesTable').load('availablesTable.php?deployment_id=' + deploID);
$('#list').jqGrid('setSelection', deploID );
$('input[name="updateSubmitted"]').val('N');
}
In this way I m always executing after submit of closing the popup.. What is the way to FIRE or get the action CLOSE only?
I was trying a lot of ways... but i dont have a direct control from the popup to the parent to change values...
My scritp have to be something like that
If (Submit()) then execute my action
else (only close the popup and do anything)
Thank you