Compare commits

..

No commits in common. "7aeefea0dde66ca65a1dcd35c4fdd46d9d3e11b6" and "ff69d57ca5224ddf528ab283f4e628b296ea4886" have entirely different histories.

2 changed files with 4 additions and 23 deletions

View file

@ -210,7 +210,7 @@ $=jQuery;
after_list=options.after_list; after_list=options.after_list;
after_list(data.rows); after_list();
} }

View file

@ -1,4 +1,4 @@
$=jQuery;
(function( $ ){ (function( $ ){
@ -58,16 +58,6 @@ $=jQuery;
} }
} }
beforeSend=false;
if(options.hasOwnProperty("before_send")) {
beforeSend=options.before_send;
console.log('Send before...');
}
$(this).on('submit', function (e) { $(this).on('submit', function (e) {
//Get data of form //Get data of form
@ -118,7 +108,6 @@ $=jQuery;
cache:false, cache:false,
contentType:false, contentType:false,
processData: false, processData: false,
beforeSend: beforeSend,
success: function (data) { success: function (data) {
$(options.loading).hide(); $(options.loading).hide();
@ -128,12 +117,6 @@ $=jQuery;
if(!data.hasOwnProperty("error_csrf")) if(!data.hasOwnProperty("error_csrf"))
{ {
if(options.hasOwnProperty("error")) {
options.error(data);
}
if(data.hasOwnProperty("csrf_token")) if(data.hasOwnProperty("csrf_token"))
{ {
@ -147,8 +130,6 @@ $=jQuery;
if(data.hasOwnProperty('error_form')) if(data.hasOwnProperty('error_form'))
{ {
console.log('Showing errors in form...');
for(i in data.error_form) { for(i in data.error_form) {
$(i).html(data.error_form[i]); $(i).html(data.error_form[i]);