From c6e63d7b7fc15a6480b01f6f352a358ba2ed876d Mon Sep 17 00:00:00 2001 From: Miika Arponen Date: Wed, 8 Jun 2016 22:06:55 +0300 Subject: [PATCH] Minified JS --- js/dustpress-min.js | 2 +- js/dustpress.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/dustpress-min.js b/js/dustpress-min.js index 1d37bd0..dbbfb38 100644 --- a/js/dustpress-min.js +++ b/js/dustpress-min.js @@ -1 +1 @@ -window.DustPress=function(r,e,$){var s={};return s.defaults={type:"post",tidy:!1,render:!1,partial:"",success:function(){},error:function(){}},s.ajax=function(e,a){var t=$.extend(s.defaults,a);s.success=a.success,s.error=a.error,$.ajax({url:r.location,method:t.type,data:{dustpress_data:{path:e,args:t.args,render:t.render,tidy:t.tidy,partial:t.partial}}}).done(s.successHandler).fail(s.errorHandler)},s.successHandler=function(r,e,a){var t=$.parseJSON(r);void 0===t.error?s.success(t.success,e,a):s.error(t,e,a)},s.errorHandler=function(r,e,a){s.error({error:a},e,r)},s}(window,document,jQuery);var dp=window.DustPress.ajax; \ No newline at end of file +window.DustPress=function(r,e,$){var s={};return s.defaults={type:"post",tidy:!1,render:!1,partial:"",success:function(){},error:function(){}},s.ajax=function(e,a){var t=$.extend(s.defaults,a);s.success=a.success,s.error=a.error,s.path=e,s.params=a,$.ajax({url:r.location,method:t.type,data:{dustpress_data:{path:e,args:t.args,render:t.render,tidy:t.tidy,partial:t.partial}}}).done(s.successHandler).fail(s.errorHandler)},s.successHandler=function(e,a,t){var n=$.parseJSON(e);if(r.DustPressDebugger){delete s.params.success,delete s.params.error;var o={params:s.params,data:n};r.DustPressDebugger.extend(o,s.path)}void 0===n.error?s.success(n.success,a,t):"function"==typeof s.error&&s.error(n,a,t)},s.errorHandler=function(r,e,a){"function"==typeof s.error&&s.error({error:a},e,r)},s}(window,document,jQuery);var dp=window.DustPress.ajax; \ No newline at end of file diff --git a/js/dustpress.js b/js/dustpress.js index f5464df..900f0b2 100755 --- a/js/dustpress.js +++ b/js/dustpress.js @@ -73,4 +73,4 @@ window.DustPress = ( function( window, document, $ ) { })( window, document, jQuery ); -var dp = window.DustPress.ajax; +var dp = window.DustPress.ajax; \ No newline at end of file