From 0b737f9d861523173b9d9e2dbe3ae766d21374b7 Mon Sep 17 00:00:00 2001 From: javatmp Date: Mon, 5 Nov 2018 08:52:50 +0400 Subject: [PATCH] clean and remove promise on triggerHandler --- dist/bootstrap-actionable.min.js | 4 +-- js/bootstrap-actionable.js | 59 +++++++++++++++----------------- package.json | 2 +- 3 files changed, 31 insertions(+), 34 deletions(-) diff --git a/dist/bootstrap-actionable.min.js b/dist/bootstrap-actionable.min.js index 6879dfe..76383fa 100644 --- a/dist/bootstrap-actionable.min.js +++ b/dist/bootstrap-actionable.min.js @@ -2,9 +2,9 @@ * bootstrap-actionable (http://javatmp.com) * Actionable plugin is a small Javascript code that help implement click actions for a and button tags by declarative way and provide functionalities to load AJAX content in Bootstrap Modal Wrapper instance. * - * @version 1.0.10 + * @version 1.0.11 * @link https://www.javatmp.com/pages/javatmp-actionable-plugin * @copyright 2018 JavaTMP * @license MIT */ -!function(t,e){"use strict";"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery"),require("bootstrap"),require("bootstrap-modal-wrapper")):"function"==typeof define&&define.amd?define("bootstrap-actionable",["jquery","bootstrap"],function(t){return e(t)}):t.BootstrapActionable=e(t.jQuery,t.BootstrapModalWrapperFactory)}(this,function(u,p){"use strict";var t={loadingHtml:"Loading ...",ajaxHttpMethod:"GET",dataType:"HTML",ajaxContainerReady:"ajax-container-ready"};function e(){this.options=u.extend({},t),this.init(),this.registerJQueryPlugin()}return e.prototype.init=function(){var s=this;u("body").on("click","[actionType]",function(t){t.preventDefault();var e=u(this).attr("actionType")?u(this).attr("actionType"):"ajax",a=u(this).attr("actionScope")?u(this).attr("actionScope"):"html",n=u(this).data("actionableOptions");if("ajax-model"===e){var o=u(this).attr("href")?u(this).attr("href"):u(this).attr("actionLink"),r={message:s.options.loadingHtml,dataType:s.options.dataType,httpMethod:s.options.ajaxHttpMethod,ajaxContainerReadyEventName:s.options.ajaxContainerReady,url:o};u.extend(!0,r,n),p.createAjaxModal(r)}else if("action-ref"===e){var i=u(this).attr("action-ref-by-name")?u(this).attr("action-ref-by-name"):"";if(0