Fixes in popup and posting2

This commit is contained in:
absurdo 2024-01-07 01:12:21 +01:00
parent 82db143dc0
commit c261d12284
2 changed files with 25 additions and 6 deletions

View file

@ -242,6 +242,25 @@ $=jQuery;
$(this).on('click', function (e) { $(this).on('click', function (e) {
if(pre_callback!=undefined)
{
r=pre_callback(popup, this);
if(r!=undefined)
{
if(r===false)
{
return false;
}
}
}
//Show layer_popup //Show layer_popup
body_height=$("body").height(); body_height=$("body").height();

View file

@ -308,15 +308,15 @@ function sendGet(element, send_data, loading, success, error_data, pre_callback)
} }
if(options.hasOwnProperty("pre_callback")) {
options.pre_callback(data);
}
//$(this).click( function (e) { //$(this).click( function (e) {
$(this).click( function(e) { $(this).click( function(e) {
if(options.hasOwnProperty("pre_callback")) {
options.pre_callback();
}
url=$(this).attr('data-url'); url=$(this).attr('data-url');
$(options.loading).show(); $(options.loading).show();