chess/public/assets/js/pages/crud/file-upload/image-input.min.js
Ramadhon Ikhsan Prasetya 603e31b0f4 init
2024-08-29 10:56:32 +07:00

1 line
1.4 KiB
JavaScript
Vendored

"use strict";var KTImageInputDemo={init:function(){!function(){new KTImageInput("kt_image_1"),new KTImageInput("kt_image_2"),new KTImageInput("kt_image_3");var t=new KTImageInput("kt_image_4");t.on("cancel",function(t){swal.fire({title:"Image successfully canceled !",type:"success",buttonsStyling:!1,confirmButtonText:"Awesome!",confirmButtonClass:"btn btn-primary font-weight-bold"})}),t.on("change",function(t){swal.fire({title:"Image successfully changed !",type:"success",buttonsStyling:!1,confirmButtonText:"Awesome!",confirmButtonClass:"btn btn-primary font-weight-bold"})}),t.on("remove",function(t){swal.fire({title:"Image successfully removed !",type:"error",buttonsStyling:!1,confirmButtonText:"Got it!",confirmButtonClass:"btn btn-primary font-weight-bold"})});var n=new KTImageInput("kt_image_5");n.on("cancel",function(t){swal.fire({title:"Image successfully changed !",type:"success",buttonsStyling:!1,confirmButtonText:"Awesome!",confirmButtonClass:"btn btn-primary font-weight-bold"})}),n.on("change",function(t){swal.fire({title:"Image successfully changed !",type:"success",buttonsStyling:!1,confirmButtonText:"Awesome!",confirmButtonClass:"btn btn-primary font-weight-bold"})}),n.on("remove",function(t){swal.fire({title:"Image successfully removed !",type:"error",buttonsStyling:!1,confirmButtonText:"Got it!",confirmButtonClass:"btn btn-primary font-weight-bold"})})}()}};KTUtil.ready(function(){KTImageInputDemo.init()});