Fixes in popup and posting2
This commit is contained in:
parent
82db143dc0
commit
c261d12284
2 changed files with 25 additions and 6 deletions
19
popup.js
19
popup.js
|
|
@ -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();
|
||||||
|
|
|
||||||
12
posting2.js
12
posting2.js
|
|
@ -307,16 +307,16 @@ function sendGet(element, send_data, loading, success, error_data, pre_callback)
|
||||||
options['loading']='#loading';
|
options['loading']='#loading';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue