diff --git a/popup.js b/popup.js index dd815f5..f0b21f5 100644 --- a/popup.js +++ b/popup.js @@ -242,6 +242,25 @@ $=jQuery; $(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 body_height=$("body").height(); diff --git a/posting2.js b/posting2.js index 226bf65..8e9b710 100644 --- a/posting2.js +++ b/posting2.js @@ -307,16 +307,16 @@ function sendGet(element, send_data, loading, success, error_data, pre_callback) options['loading']='#loading'; } - - if(options.hasOwnProperty("pre_callback")) { - - options.pre_callback(data); - - } //$(this).click( function (e) { $(this).click( function(e) { + if(options.hasOwnProperty("pre_callback")) { + + options.pre_callback(); + + } + url=$(this).attr('data-url'); $(options.loading).show();