All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.base.jqdnr.min.js Maven / Gradle / Ivy

There is a newer version: 5.0.6
Show newest version
'use strict';(function(c,f){"function"===typeof define&&define.amd?define(["jquery"],function(k){return f(k,c,c.document)}):"object"===typeof module&&module.exports?module.exports=function(c,d){c||(c=window);void 0===d&&(d="undefined"!==typeof window?require("jquery"):require("jquery")(c));f(d,c,c.document);return d}:f(jQuery,c,c.document)})("undefined"!==typeof window?window:this,function(c,f,k){var d="mousedown",l="mousemove",m="mouseup",q=function(b){var a=b.originalEvent.targetTouches;return a?
(a=a[0],{x:a.pageX,y:a.pageY}):{x:b.pageX,y:b.pageY}},n={drag:function(b){var a=b.data,c=a.e,e=a.dnr,t=a.ar,a=a.dnrAr;b=q(b);"move"===e.k?c.css({left:e.X+b.x-e.pX,top:e.Y+b.y-e.pY}):(c.css({width:Math.max(b.x-e.pX+e.W,0),height:Math.max(b.y-e.pY+e.H,0)}),a&&t.css({width:Math.max(b.x-a.pX+a.W,0),height:Math.max(b.y-a.pY+a.H,0)}));return!1},stop:function(){c(k).off(l,n.drag).off(m,n.stop)}},r=function(b,a,f,e){return b.each(function(){a=a?c(a,b):b;a.on(d,{e:b,k:f},function(a){var b=a.data,d={},f,g,
h=function(a,b){return parseInt(a.css(b),10)||!1},p=q(a);if(!c(a.target).hasClass("ui-jqdialog-titlebar-close")&&!c(a.target).parent().hasClass("ui-jqdialog-titlebar-close")){a=b.e;g=e?c(e):!1;if("relative"!==a.css("position"))try{a.position(d)}catch(u){}f={X:d.left||h(a,"left")||0,Y:d.top||h(a,"top")||0,W:h(a,"width")||a[0].scrollWidth||0,H:h(a,"height")||a[0].scrollHeight||0,pX:p.x,pY:p.y,k:b.k};d=g&&"move"!==b.k?{X:d.left||h(g,"left")||0,Y:d.top||h(g,"top")||0,W:g[0].offsetWidth||h(g,"width")||
0,H:g[0].offsetHeight||h(g,"height")||0,pX:p.x,pY:p.y,k:b.k}:!1;b=a.find("input.hasDatepicker");if(0




© 2015 - 2025 Weber Informatics LLC | Privacy Policy