10 lines
1.7 KiB
JavaScript
10 lines
1.7 KiB
JavaScript
/*
|
|
* Kendo UI Complete v2013.3.1119 (http://kendoui.com)
|
|
* Copyright 2013 Telerik AD. All rights reserved.
|
|
*
|
|
* Kendo UI Complete commercial licenses may be obtained at
|
|
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
|
|
* If you do not own a commercial license, this file shall be governed by the trial license terms.
|
|
*/
|
|
!function(define){return define(["./kendo.popup.min"],function(){!function(n,e){var i=window.kendo,o=i.mobile.ui,t=i.ui.Popup,s='<div class="km-shim"/>',d=o.Widget,p=d.extend({init:function(e,o){var p=this,a=i.mobile.application,c=i.support.mobileOS,r=a?a.os.name:c?c.name:"ios",u="ios"===r||"wp"===r||(a?a.os.skin:!1),l="blackberry"===r,m=o.align||(u?"bottom center":l?"center right":"center center"),h=o.position||(u?"bottom center":l?"center right":"center center"),f=o.effect||(u?"slideIn:up":l?"slideIn:left":"fade:in"),y=n(s).handler(p).hide();d.fn.init.call(p,e,o),p.shim=y,p.element=e,o=p.options,o.className&&p.shim.addClass(o.className),o.modal||p.shim.on("up","hide"),(a?a.element:n(document.body)).append(y),p.popup=new t(p.element,{anchor:y,modal:!0,appendTo:y,origin:m,position:h,animation:{open:{effects:f,duration:o.duration},close:{duration:o.duration}},deactivate:function(){y.hide()},open:function(){y.show()}}),i.notify(p)},options:{name:"Shim",modal:!1,align:e,position:e,effect:e,duration:200},show:function(){this.popup.open()},hide:function(e){e&&n.contains(this.shim.children().children(".k-popup")[0],e.target)||this.popup.close()},destroy:function(){d.fn.destroy.call(this),this.shim.kendoDestroy(),this.popup.destroy(),this.shim.remove()}});o.plugin(p)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(n,e){return e()});
|
|
//@ sourceMappingURL=kendo.mobile.shim.min.js.map
|