10 lines
2.1 KiB
JavaScript
10 lines
2.1 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.mobile.popover.min","./kendo.mobile.shim.min"],function(){!function(e){var t=window.kendo,n=t.support,i=t.mobile.ui,o=i.Shim,a=i.Popup,c=i.Widget,s="open",r="close",l="command",p="li>a",h="actionsheetContext",d='<div class="km-actionsheet-wrapper" />',m=t.template('<li class="km-actionsheet-cancel"><a href="\\#">#:cancel#</a></li>'),u=c.extend({init:function(s,r){var l=this,h=n.mobileOS,u=r.type,f=u&&"tablet"==u||!u&&h&&h.tablet,g=f?a:o;c.fn.init.call(l,s,r),s=l.element,r.cancelTemplate&&(m=t.template(r.cancelTemplate)),s.addClass("km-actionsheet").append(m({cancel:l.options.cancel})).wrap(d).on("up",p,"_click").on("click",p,t.preventDefault),l.wrapper=s.parent().addClass(u?" km-actionsheet-"+u:""),l.shim=new g(l.wrapper,e.extend({modal:h.ios&&h.majorVersion<7,className:"km-actionsheet-root"},l.options.popup)),t.notify(l,i),f&&t.onResize(e.proxy(this,"_resize"))},events:[s,r,l],options:{name:"ActionSheet",cancel:"Cancel",popup:{height:"auto"}},open:function(t,n){var i=this;i.target=e(t),i.context=n,i.shim.show(t)},close:function(){this.context=this.target=null,this.shim.hide()},openFor:function(e){var t=this,n=e.data(h);t.open(e,n),t.trigger(s,{target:e,context:n})},destroy:function(){c.fn.destroy.call(this),this.shim.destroy()},_click:function(n){var i,o;n.isDefaultPrevented()||(i=e(n.currentTarget),o=i.data("action"),o&&t.getter(o)(window)({target:this.target,context:this.context}),this.trigger(l,{target:this.target,context:this.context,currentTarget:i}),n.preventDefault(),this.close(),this.trigger(r))},_resize:function(){this.shim.hide()}});i.plugin(u)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,t){return t()});
|
|
//@ sourceMappingURL=kendo.mobile.actionsheet.min.js.map
|