Go to the source code of this file.
Functions | |
function | isVisible (element) |
extend ($.expr[':'],{data:function(a, i, m){return $.data(a, m[3]);}, tabbable:function(a, i, m){var nodeName=a.nodeName.toLowerCase();return(a.tabIndex >=0 &&(('a'==nodeName &&a.href)||(/input|select|textarea|button/.test(nodeName)&&'hidden'!=a.type &&!a.disabled))&&isVisible(a));}}) | |
function | getter (namespace, plugin, method, args) |
function | extend ($.ui.draggable,{defaults:{appendTo:"parent", axis:false, cancel:":input", delay:0, distance:1, helper:"original", scope:"default", cssNamespace:"ui"}}) |
ui plugin | add ("draggable","cursor",{start:function(e, ui){var t=$('body');if(t.css("cursor")) ui.options._cursor=t.css("cursor");t.css("cursor", ui.options.cursor);}, stop:function(e, ui){if(ui.options._cursor)$('body').css("cursor", ui.options._cursor);}}) |
function | widget ("ui.sortable",$.extend({},$.ui.mouse,{_init:function(){var o=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css('float')):false;this.offset=this.element.offset();this._mouseInit();}, plugins:{}, ui:function(inst){return{helper:(inst||this)["helper"], placeholder:(inst||this)["placeholder"]||$([]), position:(inst||this)["position"], absolutePosition:(inst||this)["positionAbs"], options:this.options, element:this.element, item:(inst||this)["currentItem"], sender:inst?inst.element:null};}, _propagate:function(n, e, inst, noPropagation){$.ui.plugin.call(this, n,[e, this.ui(inst)]);if(!noPropagation) this.element.triggerHandler(n=="sort"?n:"sort"+n,[e, this.ui(inst)], this.options[n]);}, serialize:function(o){var items=this._getItemsAsjQuery(o &&o.connected);var str=[];o=o||{};$(items).each(function(){var res=($(this.item||this).attr(o.attribute||'id')||'').match(o.expression||(/(.+)[-=_](.+)/));if(res) str.push((o.key||res[1]+'[]')+'='+(o.key &&o.expression?res[1]:res[2]));});return str.join('&');}, toArray:function(o){var items=this._getItemsAsjQuery(o &&o.connected);var ret=[];items.each(function(){ret.push($(this).attr(o.attr||'id'));});return ret;}, _intersectsWith:function(item){var x1=this.positionAbs.left, x2=x1+this.helperProportions.width, y1=this.positionAbs.top, y2=y1+this.helperProportions.height;var l=item.left, r=l+item.width, t=item.top, b=t+item.height;var dyClick=this.offset.click.top, dxClick=this.offset.click.left;var isOverElement=(y1+dyClick)>t &&(y1+dyClick)< b &&(x1+dxClick)>l &&(x1+dxClick)< r;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?'width':'height']>item[this.floating?'width':'height'])){return isOverElement;}else{return(l< x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)< r &&t< y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)< b);}}, _intersectsWithEdge:function(item){var x1=this.positionAbs.left, x2=x1+this.helperProportions.width, y1=this.positionAbs.top, y2=y1+this.helperProportions.height;var l=item.left, r=l+item.width, t=item.top, b=t+item.height;var dyClick=this.offset.click.top, dxClick=this.offset.click.left;var isOverElement=(y1+dyClick)>t &&(y1+dyClick)< b &&(x1+dxClick)>l &&(x1+dxClick)< r;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?'width':'height']>item[this.floating?'width':'height'])){if(!isOverElement) return false;if(this.floating){if((x1+dxClick)>l &&(x1+dxClick)< l+item.width/2) return 2;if((x1+dxClick)>l+item.width/2 &&(x1+dxClick)< r) return 1;}else{var height=item.height;var direction=y1-this.updateOriginalPosition.top< 0?2:1;if(direction==1 &&(y1+dyClick)< t+height/2){return 2;}else if(direction==2 &&(y1+dyClick)>t+height/2){return 1;}}}else{if(!(l< x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)< r &&t< y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)< b)) return false;if(this.floating){if(x2 >l &&x1< l) return 2;if(x1< r &&x2 >r) return 1;}else{if(y2 >t &&y1< t) return 1;if(y1< b &&y2 >b) return 2;}}return false;}, refresh:function(){this._refreshItems();this.refreshPositions();}, _getItemsAsjQuery:function(connected){var self=this;var items=[];var queries=[];if(this.options.connectWith &&connected){for(var i=this.options.connectWith.length-1;i >=0;i--){var cur=$(this.options.connectWith[i]);for(var j=cur.length-1;j >=0;j--){var inst=$.data(cur[j],'sortable');if(inst &&inst!=this &&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items, inst.element).not(".ui-sortable-helper"), inst]);}};};}queries.push([$.isFunction(this.options.items)?this.options.items.call(this.element, null,{options:this.options, item:this.currentItem}):$(this.options.items, this.element).not(".ui-sortable-helper"), this]);for(var i=queries.length-1;i >=0;i--){queries[i][0].each(function(){items.push(this);});};return $(items);}, _removeCurrentsFromItems:function(){var list=this.currentItem.find(":data(sortable-item)");for(var i=0;i< this.items.length;i++){for(var j=0;j< list.length;j++){if(list[j]==this.items[i].item[0]) this.items.splice(i, 1);};};}, _refreshItems:function(){this.items=[];this.containers=[this];var items=this.items;var self=this;var queries=[[$.isFunction(this.options.items)?this.options.items.call(this.element, null,{options:this.options, item:this.currentItem}):$(this.options.items, this.element), this]];if(this.options.connectWith){for(var i=this.options.connectWith.length-1;i >=0;i--){var cur=$(this.options.connectWith[i]);for(var j=cur.length-1;j >=0;j--){var inst=$.data(cur[j],'sortable');if(inst &&inst!=this &&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items, inst.element), inst]);this.containers.push(inst);}};};}for(var i=queries.length-1;i >=0;i--){queries[i][0].each(function(){$.data(this,'sortable-item', queries[i][1]);items.push({item:$(this), instance:queries[i][1], width:0, height:0, left:0, top:0});});};}, refreshPositions:function(fast){if(this.offsetParent){var po=this.offsetParent.offset();this.offset.parent={top:po.top+this.offsetParentBorders.top, left:po.left+this.offsetParentBorders.left};}for(var i=this.items.length-1;i >=0;i--){if(this.items[i].instance!=this.currentContainer &&this.currentContainer &&this.items[i].item[0]!=this.currentItem[0]) continue;var t=this.options.toleranceElement?$(this.options.toleranceElement, this.items[i].item):this.items[i].item;if(!fast){this.items[i].width=t[0].offsetWidth;this.items[i].height=t[0].offsetHeight;}var p=t.offset();this.items[i].left=p.left;this.items[i].top=p.top;};if(this.options.custom &&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);}else{for(var i=this.containers.length-1;i >=0;i--){var p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight();};}}, destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var i=this.items.length-1;i >=0;i--) this.items[i].item.removeData("sortable-item");}, _createPlaceholder:function(that){var self=that||this, o=self.options;if(!o.placeholder||o.placeholder.constructor==String){var className=o.placeholder;o.placeholder={element:function(){var el=$(document.createElement(self.currentItem[0].nodeName)).addClass(className||"ui-sortable-placeholder")[0];if(!className){el.style.visibility="hidden";document.body.appendChild(el);el.innerHTML=self.currentItem[0].innerHTML;document.body.removeChild(el);};return el;}, update:function(container, p){if(className &&!o.forcePlaceholderSize) return;if(!p.height()){p.height(self.currentItem.innerHeight()-parseInt(self.currentItem.css('paddingTop')||0, 10)-parseInt(self.currentItem.css('paddingBottom')||0, 10));};if(!p.width()){p.width(self.currentItem.innerWidth()-parseInt(self.currentItem.css('paddingLeft')||0, 10)-parseInt(self.currentItem.css('paddingRight')||0, 10));};}};}self.placeholder=$(o.placeholder.element.call(self.element, self.currentItem)) self.currentItem.parent()[0].appendChild(self.placeholder[0]);self.placeholder[0].parentNode.insertBefore(self.placeholder[0], self.currentItem[0]);o.placeholder.update(self, self.placeholder);}, _contactContainers:function(e){for(var i=this.containers.length-1;i >=0;i--){if(this._intersectsWith(this.containers[i].containerCache)){if(!this.containers[i].containerCache.over){if(this.currentContainer!=this.containers[i]){var dist=10000;var itemWithLeastDistance=null;var base=this.positionAbs[this.containers[i].floating?'left':'top'];for(var j=this.items.length-1;j >=0;j--){if(!contains(this.containers[i].element[0], this.items[j].item[0])) continue;var cur=this.items[j][this.containers[i].floating?'left':'top'];if(Math.abs(cur-base)< dist){dist=Math.abs(cur-base);itemWithLeastDistance=this.items[j];}}if(!itemWithLeastDistance &&!this.options.dropOnEmpty) continue;this.currentContainer=this.containers[i];itemWithLeastDistance?this.options.sortIndicator.call(this, e, itemWithLeastDistance, null, true):this.options.sortIndicator.call(this, e, null, this.containers[i].element, true);this._propagate("change", e);this.containers[i]._propagate("change", e, this);this.options.placeholder.update(this.currentContainer, this.placeholder);}this.containers[i]._propagate("over", e, this);this.containers[i].containerCache.over=1;}}else{if(this.containers[i].containerCache.over){this.containers[i]._propagate("out", e, this);this.containers[i].containerCache.over=0;}}};}, _mouseCapture:function(e, overrideHandle){if(this.options.disabled||this.options.type=='static') return false;this._refreshItems();var currentItem=null, self=this, nodes=$(e.target).parents().each(function(){if($.data(this,'sortable-item')==self){currentItem=$(this);return false;}});if($.data(e.target,'sortable-item')==self) currentItem=$(e.target);if(!currentItem) return false;if(this.options.handle &&!overrideHandle){var validHandle=false;$(this.options.handle, currentItem).find("*").andSelf().each(function(){if(this==e.target) validHandle=true;});if(!validHandle) return false;}this.currentItem=currentItem;this._removeCurrentsFromItems();return true;}, createHelper:function(e){var o=this.options;var helper=typeof o.helper=='function'?$(o.helper.apply(this.element[0],[e, this.currentItem])):(o.helper=="original"?this.currentItem:this.currentItem.clone());if(!helper.parents('body').length)$(o.appendTo!='parent'?o.appendTo:this.currentItem[0].parentNode)[0].appendChild(helper[0]);return helper;}, _mouseStart:function(e, overrideHandle, noActivation){var o=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this.createHelper(e);this.margins={left:(parseInt(this.currentItem.css("marginLeft"), 10)||0), top:(parseInt(this.currentItem.css("marginTop"), 10)||0)};this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top, left:this.offset.left-this.margins.left};this.offset.click={left:e.pageX-this.offset.left, top:e.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();this.offsetParentBorders={top:(parseInt(this.offsetParent.css("borderTopWidth"), 10)||0), left:(parseInt(this.offsetParent.css("borderLeftWidth"), 10)||0)};this.offset.parent={top:po.top+this.offsetParentBorders.top, left:po.left+this.offsetParentBorders.left};this.updateOriginalPosition=this.originalPosition=this._generatePosition(e);this.domPosition={prev:this.currentItem.prev()[0], parent:this.currentItem.parent()[0]};this.helperProportions={width:this.helper.outerWidth(), height:this.helper.outerHeight()};if(o.helper=="original"){this._storedCSS={position:this.currentItem.css("position"), top:this.currentItem.css("top"), left:this.currentItem.css("left"), clear:this.currentItem.css("clear")};}else{this.currentItem.hide();}this.helper.css({position:'absolute', clear:'both'}).addClass('ui-sortable-helper');this._createPlaceholder();this._propagate("start", e);if(!this._preserveHelperProportions) this.helperProportions={width:this.helper.outerWidth(), height:this.helper.outerHeight()};if(o.cursorAt){if(o.cursorAt.left!=undefined) this.offset.click.left=o.cursorAt.left;if(o.cursorAt.right!=undefined) this.offset.click.left=this.helperProportions.width-o.cursorAt.right;if(o.cursorAt.top!=undefined) this.offset.click.top=o.cursorAt.top;if(o.cursorAt.bottom!=undefined) this.offset.click.top=this.helperProportions.height-o.cursorAt.bottom;}if(o.containment){if(o.containment=='parent') o.containment=this.helper[0].parentNode;if(o.containment=='document'||o.containment=='window') this.containment=[0-this.offset.parent.left, 0-this.offset.parent.top,$(o.containment=='document'?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"), 10)||0),($(o.containment=='document'?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"), 10)||0)];if(!(/^(document|window|parent)$/).test(o.containment)){var ce=$(o.containment)[0];var co=$(o.containment).offset();var over=($(ce).css("overflow")!='hidden');this.containment=[co.left+(parseInt($(ce).css("borderLeftWidth"), 10)||0)-this.offset.parent.left, co.top+(parseInt($(ce).css("borderTopWidth"), 10)||0)-this.offset.parent.top, co.left+(over?Math.max(ce.scrollWidth, ce.offsetWidth):ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"), 10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"), 10)||0), co.top+(over?Math.max(ce.scrollHeight, ce.offsetHeight):ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"), 10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.currentItem.css("marginBottom"), 10)||0)];}}if(!noActivation){for(var i=this.containers.length-1;i >=0;i--){this.containers[i]._propagate("activate", e, this);}}if($.ui.ddmanager)$.ui.ddmanager.current=this;if($.ui.ddmanager &&!o.dropBehaviour)$.ui.ddmanager.prepareOffsets(this, e);this.dragging=true;this._mouseDrag(e);return true;}, _convertPositionTo:function(d, pos){if(!pos) pos=this.position;var mod=d=="absolute"?1:-1;return{top:(pos.top+this.offset.parent.top *mod-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*mod+this.margins.top *mod), left:(pos.left+this.offset.parent.left *mod-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*mod+this.margins.left *mod)};}, _generatePosition:function(e){var o=this.options;var position={top:(e.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)), left:(e.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition) return position;if(this.containment){if(position.left< this.containment[0]) position.left=this.containment[0];if(position.top< this.containment[1]) position.top=this.containment[1];if(position.left >this.containment[2]) position.left=this.containment[2];if(position.top >this.containment[3]) position.top=this.containment[3];}if(o.grid){var top=this.originalPosition.top+Math.round((position.top-this.originalPosition.top)/o.grid[1])*o.grid[1];position.top=this.containment?(!(top< this.containment[1]||top >this.containment[3])?top:(!(top< this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;var left=this.originalPosition.left+Math.round((position.left-this.originalPosition.left)/o.grid[0])*o.grid[0];position.left=this.containment?(!(left< this.containment[0]||left >this.containment[2])?left:(!(left< this.containment[0])?left-o.grid[0]:left+o.grid[0])):left;}return position;}, _mouseDrag:function(e){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");$.ui.plugin.call(this,"sort",[e, this.ui()]);this.positionAbs=this._convertPositionTo("absolute");this.helper[0].style.left=this.position.left+'px';this.helper[0].style.top=this.position.top+'px';for(var i=this.items.length-1;i >=0;i--){var intersection=this._intersectsWithEdge(this.items[i]);if(!intersection) continue;if(this.items[i].item[0]!=this.currentItem[0]&&this.placeholder[intersection==1?"next":"prev"]()[0]!=this.items[i].item[0]&&!contains(this.placeholder[0], this.items[i].item[0])&&(this.options.type=='semi-dynamic'?!contains(this.element[0], this.items[i].item[0]):true)){this.updateOriginalPosition=this._generatePosition(e);this.direction=intersection==1?"down":"up";this.options.sortIndicator.call(this, e, this.items[i]);this._propagate("change", e);break;}}this._contactContainers(e);if($.ui.ddmanager)$.ui.ddmanager.drag(this, e);this.element.triggerHandler("sort",[e, this.ui()], this.options["sort"]);return false;}, _rearrange:function(e, i, a, hardRefresh){a?a[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=='down'?i.item[0]:i.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var self=this, counter=this.counter;window.setTimeout(function(){if(counter==self.counter) self.refreshPositions(!hardRefresh);}, 0);}, _mouseStop:function(e, noPropagation){if($.ui.ddmanager &&!this.options.dropBehaviour)$.ui.ddmanager.drop(this, e);if(this.options.revert){var self=this;var cur=self.placeholder.offset();$(this.helper).animate({left:cur.left-this.offset.parent.left-self.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft), top:cur.top-this.offset.parent.top-self.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)}, parseInt(this.options.revert, 10)||500, function(){self._clear(e);});}else{this._clear(e, noPropagation);}return false;}, _clear:function(e, noPropagation){if(!this._noFinalSort) this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.options.helper=="original") this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");else this.currentItem.show();if(this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0]) this._propagate("update", e, null, noPropagation);if(!contains(this.element[0], this.currentItem[0])){this._propagate("remove", e, null, noPropagation);for(var i=this.containers.length-1;i >=0;i--){if(contains(this.containers[i].element[0], this.currentItem[0])){this.containers[i]._propagate("update", e, this, noPropagation);this.containers[i]._propagate("receive", e, this, noPropagation);}};};for(var i=this.containers.length-1;i >=0;i--){this.containers[i]._propagate("deactivate", e, this, noPropagation);if(this.containers[i].containerCache.over){this.containers[i]._propagate("out", e, this);this.containers[i].containerCache.over=0;}}this.dragging=false;if(this.cancelHelperRemoval){this._propagate("beforeStop", e, null, noPropagation);this._propagate("stop", e, null, noPropagation);return false;}this._propagate("beforeStop", e, null, noPropagation);this.placeholder.remove();if(this.options.helper!="original") this.helper.remove();this.helper=null;this._propagate("stop", e, null, noPropagation);return true;}})) |
function | scopeCallback (callback, scope) |
function | completed (cancel) |
function | toggle (toShow, toHide, data, clickedActive, down) |
function | clickHandler (event) |
function | findActive (headers, selector) |
function | widget ("ui.dialog",{_init:function(){this.originalTitle=this.element.attr('title');this.options.title=this.options.title||this.originalTitle;var self=this, options=this.options, uiDialogContent=this.element.removeAttr('title').addClass('ui-dialog-content').wrap('< div/>').wrap('< div/>'), uiDialogContainer=(this.uiDialogContainer=uiDialogContent.parent()).addClass('ui-dialog-container').css({position:'relative', width:'100%', height:'100%'}), uiDialogTitlebar=(this.uiDialogTitlebar=$('< div/>')).addClass('ui-dialog-titlebar').append('< a href="#"class="ui-dialog-titlebar-close">< span >X</span ></a >').prependTo(uiDialogContainer), title=options.title||' ', titleId=$.ui.dialog.getTitleId(this.element), uiDialogTitle=$('< span/>').addClass('ui-dialog-title').attr('id', titleId).html(title).prependTo(uiDialogTitlebar), uiDialog=(this.uiDialog=uiDialogContainer.parent()).appendTo(document.body).hide().addClass('ui-dialog').addClass(options.dialogClass).addClass(uiDialogContent.attr('className')).removeClass('ui-dialog-content').css({position:'absolute', width:options.width, height:options.height, overflow:'hidden', zIndex:options.zIndex}).attr('tabIndex',-1).css('outline', 0).keydown(function(ev){(options.closeOnEscape &&ev.keyCode &&ev.keyCode==$.keyCode.ESCAPE &&self.close());}).mousedown(function(){self._moveToTop();}), uiDialogButtonPane=(this.uiDialogButtonPane=$('< div/>')).addClass('ui-dialog-buttonpane').css({position:'absolute', bottom:0}).appendTo(uiDialog);this.uiDialogTitlebarClose=$('.ui-dialog-titlebar-close', uiDialogTitlebar).hover(function(){$(this).addClass('ui-dialog-titlebar-close-hover');}, function(){$(this).removeClass('ui-dialog-titlebar-close-hover');}).mousedown(function(ev){ev.stopPropagation();}).click(function(){self.close();return false;});uiDialogTitlebar.find("*").add(uiDialogTitlebar).each(function(){$.ui.disableSelection(this);});(options.draggable &&$.fn.draggable &&this._makeDraggable());(options.resizable &&$.fn.resizable &&this._makeResizable());this._createButtons(options.buttons);this._isOpen=false;(options.bgiframe &&$.fn.bgiframe &&uiDialog.bgiframe());(options.autoOpen &&this.open());}, destroy:function(){(this.overlay &&this.overlay.destroy());this.uiDialog.hide();this.element.unbind('.dialog').removeData('dialog').removeClass('ui-dialog-content').hide().appendTo('body');this.uiDialog.remove();(this.originalTitle &&this.element.attr('title', this.originalTitle));}, close:function(){if(false===this._trigger('beforeclose', null,{options:this.options})){return;}(this.overlay &&this.overlay.destroy());this.uiDialog.hide(this.options.hide).unbind('keypress.ui-dialog');this._trigger('close', null,{options:this.options});$.ui.dialog.overlay.resize();this._isOpen=false;}, isOpen:function(){return this._isOpen;}, open:function(){if(this._isOpen){return;}this.overlay=this.options.modal?new $.ui.dialog.overlay(this):null;(this.uiDialog.next().length &&this.uiDialog.appendTo('body'));this._position(this.options.position);this.uiDialog.show(this.options.show);(this.options.autoResize &&this._size());this._moveToTop(true);(this.options.modal &&this.uiDialog.bind('keypress.ui-dialog', function(e){if(e.keyCode!=$.keyCode.TAB){return;}var tabbables=$(':tabbable', this), first=tabbables.filter(':first')[0], last=tabbables.filter(':last')[0];if(e.target==last &&!e.shiftKey){setTimeout(function(){first.focus();}, 1);}else if(e.target==first &&e.shiftKey){setTimeout(function(){last.focus();}, 1);}}));this.uiDialog.find(':tabbable:first').focus();this._trigger('open', null,{options:this.options});this._isOpen=true;}, _createButtons:function(buttons){var self=this, hasButtons=false, uiDialogButtonPane=this.uiDialogButtonPane;uiDialogButtonPane.empty().hide();$.each(buttons, function(){return!(hasButtons=true);});if(hasButtons){uiDialogButtonPane.show();$.each(buttons, function(name, fn){$('< button type="button"></button >').text(name).click(function(){fn.apply(self.element[0], arguments);}).appendTo(uiDialogButtonPane);});}}, _makeDraggable:function(){var self=this, options=this.options;this.uiDialog.draggable({cancel:'.ui-dialog-content', helper:options.dragHelper, handle:'.ui-dialog-titlebar', start:function(){self._moveToTop();(options.dragStart &&options.dragStart.apply(self.element[0], arguments));}, drag:function(){(options.drag &&options.drag.apply(self.element[0], arguments));}, stop:function(){(options.dragStop &&options.dragStop.apply(self.element[0], arguments));$.ui.dialog.overlay.resize();}});}, _makeResizable:function(handles){handles=(handles===undefined?this.options.resizable:handles);var self=this, options=this.options, resizeHandles=typeof handles=='string'?handles:'n, e, s, w, se, sw, ne, nw';this.uiDialog.resizable({cancel:'.ui-dialog-content', helper:options.resizeHelper, maxWidth:options.maxWidth, maxHeight:options.maxHeight, minWidth:options.minWidth, minHeight:options.minHeight, start:function(){(options.resizeStart &&options.resizeStart.apply(self.element[0], arguments));}, resize:function(){(options.autoResize &&self._size.apply(self));(options.resize &&options.resize.apply(self.element[0], arguments));}, handles:resizeHandles, stop:function(){(options.autoResize &&self._size.apply(self));(options.resizeStop &&options.resizeStop.apply(self.element[0], arguments));$.ui.dialog.overlay.resize();}});}, _moveToTop:function(force){if((this.options.modal &&!force)||(!this.options.stack &&!this.options.modal)){return this._trigger('focus', null,{options:this.options});}var maxZ=this.options.zIndex, options=this.options;$('.ui-dialog:visible').each(function(){maxZ=Math.max(maxZ, parseInt($(this).css('z-index'), 10)||options.zIndex);});(this.overlay &&this.overlay.$el.css('z-index',++maxZ));this.uiDialog.css('z-index',++maxZ);this._trigger('focus', null,{options:this.options});}, _position:function(pos){var wnd=$(window), doc=$(document), pTop=doc.scrollTop(), pLeft=doc.scrollLeft(), minTop=pTop;if($.inArray(pos,['center','top','right','bottom','left'])>=0){pos=[pos=='right'||pos=='left'?pos:'center', pos=='top'||pos=='bottom'?pos:'middle'];}if(pos.constructor!=Array){pos=['center','middle'];}if(pos[0].constructor==Number){pLeft+=pos[0];}else{switch(pos[0]){case'left':pLeft+=0;break;case'right':pLeft+=wnd.width()-this.uiDialog.width();break;default:case'center':pLeft+=(wnd.width()-this.uiDialog.width())/2;}}if(pos[1].constructor==Number){pTop+=pos[1];}else{switch(pos[1]){case'top':pTop+=0;break;case'bottom':pTop+=wnd.height()-this.uiDialog.height();break;default:case'middle':pTop+=(wnd.height()-this.uiDialog.height())/2;}}pTop=Math.max(pTop, minTop);this.uiDialog.css({top:pTop, left:pLeft});}, _setData:function(key, value){(setDataSwitch[key]&&this.uiDialog.data(setDataSwitch[key], value));switch(key){case"buttons":this._createButtons(value);break;case"draggable":(value?this._makeDraggable():this.uiDialog.draggable('destroy'));break;case"height":this.uiDialog.height(value);break;case"position":this._position(value);break;case"resizable":var uiDialog=this.uiDialog, isResizable=this.uiDialog.is(':data(resizable)');(isResizable &&!value &&uiDialog.resizable('destroy'));(isResizable &&typeof value=='string'&&uiDialog.resizable('option','handles', value));(isResizable||this._makeResizable(value));break;case"title":$(".ui-dialog-title", this.uiDialogTitlebar).html(value||' ');break;case"width":this.uiDialog.width(value);break;}$.widget.prototype._setData.apply(this, arguments);}, _size:function(){var container=this.uiDialogContainer, titlebar=this.uiDialogTitlebar, content=this.element, tbMargin=(parseInt(content.css('margin-top'), 10)||0)+(parseInt(content.css('margin-bottom'), 10)||0), lrMargin=(parseInt(content.css('margin-left'), 10)||0)+(parseInt(content.css('margin-right'), 10)||0);content.height(container.height()-titlebar.outerHeight()-tbMargin);content.width(container.width()-lrMargin);}}) |
function | Datepicker () |
extend (Datepicker.prototype,{markerClassName:'hasDatepicker', log:function(){if(this.debug) console.log.apply('', arguments);}, setDefaults:function(settings){extendRemove(this._defaults, settings||{});return this;}, _attachDatepicker:function(target, settings){var inlineSettings=null;for(attrName in this._defaults){var attrValue=target.getAttribute('date:'+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue);}catch(err){inlineSettings[attrName]=attrValue;}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=='div'||nodeName=='span');if(!target.id) target.id='dp'+(++this.uuid);var inst=this._newInst($(target), inline);inst.settings=$.extend({}, settings||{}, inlineSettings||{});if(nodeName=='input'){this._connectDatepicker(target, inst);}else if(inline){this._inlineDatepicker(target, inst);}}, _newInst:function(target, inline){var id=target[0].id.replace(/([:\[\]\.])/g,'\\\\$1');return{id:id, input:target, selectedDay:0, selectedMonth:0, selectedYear:0, drawMonth:0, drawYear:0, inline:inline, dpDiv:(!inline?this.dpDiv:$('< div class="'+this._inlineClass+'"></div >'))};}, _connectDatepicker:function(target, inst){var input=$(target);if(input.hasClass(this.markerClassName)) return;var appendText=this._get(inst,'appendText');var isRTL=this._get(inst,'isRTL');if(appendText) input[isRTL?'before':'after']('< span class="'+this._appendClass+'">'+appendText+'</span >') | |
if (showOn=='focus'||showOn=='both') input.focus(this._showDatepicker) | |
input | addClass (this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker" |
bind ("getData.datepicker", function(event, key){return this._get(inst, key);}) | |
data (target, PROP_NAME, inst) | |
if (divSpan.hasClass(this.markerClassName)) return | |
this | _setDate (inst, this._getDefaultDate(inst)) |
this | _updateDatepicker (inst) |
inst dpDiv | width (numMonths[1]*$('.ui-datepicker', inst.dpDiv[0]).width()) |
if (!inst) | |
extendRemove (inst.settings, settings||{}) | |
this _dialogInput | val (dateText) |
if (!this._pos) | |
this _dialogInput | css ('left', this._pos[0]+'px').css('top' |
this | _showDatepicker (this._dialogInput[0]) |
data (this._dialogInput[0], PROP_NAME, inst) | |
if (!$target.hasClass(this.markerClassName)) | |
removeData (target, PROP_NAME) | |
for (var i=0;i< this._disabledInputs.length;i++) | |
catch (err) | |
if (typeof name=='string') | |
if (inst &&!inst.inline) this._setDateFromField(inst) | |
return (inst?this._getDate(inst):null) | |
else | if (e.keyCode==36 &&e.ctrlKey)$.datepicker._showDatepicker(this) |
return e | ctrlKey (chr<' '||!chars||chars.indexOf(chr)>-1) |
datepicker | _hideDatepicker (null,'') |
datepicker | _setDateFromField (inst) |
if (!$.datepicker._pos) | |
input | parents ().each(function() |
if (isFixed &&$.browser.opera) | |
inst dpDiv | css ({position:'absolute', display:'block', top:'-1000px'}) |
inst dpDiv | width ($.datepicker._getNumberOfMonths(inst)[1]*$('.ui-datepicker', inst.dpDiv[0])[0].offsetWidth) |
if (!inst.inline) | |
inst dpDiv | empty ().append(this._generateHTML(inst)).find('iframe.ui-datepicker-cover').css( |
inst | dpDiv ('ui-datepicker-multi') |
if (inst.input &&inst.input[0].type!='hidden')$(inst.input[0]).focus() | |
if (this._get(inst,'isRTL')||(offset.left+inst.dpDiv.width()-scrollX)>browserWidth) offset.left | |
if ((offset.top+inst.dpDiv.height()-scrollY)>browserHeight) offset.top | |
if (!inst||(input &&inst!=$.data(input, PROP_NAME))) return | |
if (rangeSelect &&inst.stayOpen) this._selectDate('inst.dpDiv.hide(showAnim | |
datepicker | _get (inst,'showOptions') |
else inst | dpDiv (duration, postProcess) |
if (this._inDialog) | |
this inst dpDiv | remove () |
this | _adjustInstDate (inst, offset, period) |
if (this._get(inst,'gotoCurrent')&&inst.currentDay) | |
this | _notifyChange (inst) |
this | _adjustDate (target) |
if (inst.input &&inst._selectingMonthYear &&!$.browser.msie) inst.input[0].focus() | |
if (inst.stayOpen) | |
this | _selectDate (id, this._formatDate(inst, inst.currentDay, inst.currentMonth, inst.currentYear)) |
if (this._get(inst,'mandatory')) return | |
this | _selectDate (target,'') |
if (this._get(inst,'rangeSelect')&&dateStr) dateStr | |
this | _updateAlternate (inst) |
iso8601Week date | getMonth () |
iso8601Week date date | getDate () |
iso8601Week date date date | getTimezoneOffset ()/-60)) |
firstMon | setDate (firstMon.getDate()+1-firstDay) |
if (firstDay< 4 &&checkDate< firstMon) | |
else | if (checkDate >new Date(checkDate.getFullYear(), 12-1, 28)) |
return Math | floor (((checkDate-firstMon)/86400000)/7)+1 |
if (doy >-1) | |
Variables | |
function fn | remove =function(){$("*",this).add(this).triggerHandler("remove");return _remove.apply(this,arguments);} |
keyCode ={BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38} | |
widget | |
widget | prototype |
widget | defaults ={disabled:false} |
ui | |
ui | mouse |
jQuery | |
ui | intersect =function(draggable,droppable,toleranceMode){if(!droppable.offset)return false;var x1=(draggable.positionAbs||draggable.position.absolute).left,x2=x1+draggable.helperProportions.width,y1=(draggable.positionAbs||draggable.position.absolute).top,y2=y1+draggable.helperProportions.height;var l=droppable.offset.left,r=l+droppable.proportions.width,t=droppable.offset.top,b=t+droppable.proportions.height;switch(toleranceMode){case'fit':return(l<x1&&x2<r&&t<y1&&y2<b);break;case'intersect':return(l<x1+(draggable.helperProportions.width/2)&&x2-(draggable.helperProportions.width/2)<r&&t<y1+(draggable.helperProportions.height/2)&&y2-(draggable.helperProportions.height/2)<b);break;case'pointer':return(l<((draggable.positionAbs||draggable.position.absolute).left+(draggable.clickOffset||draggable.offset.click).left)&&((draggable.positionAbs||draggable.position.absolute).left+(draggable.clickOffset||draggable.offset.click).left)<r&&t<((draggable.positionAbs||draggable.position.absolute).top+(draggable.clickOffset||draggable.offset.click).top)&&((draggable.positionAbs||draggable.position.absolute).top+(draggable.clickOffset||draggable.offset.click).top)<b);break;case'touch':return((y1>=t&&y1<=b)||(y2>=t&&y2<=b)||(y1<t&&y2>b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1<l&&x2>r));break;default:return false;break;}} |
ui | ddmanager |
function | Autocompleter |
Autocompleter | Cache |
Autocompleter | Select |
Autocompleter | Selection |
ui slider | getter ="value" |
var | showOn =this._get(inst,'showOn') |
function | event |
function | key |
function | value {inst.settings[key]=value |
_inlineDatepicker | __pad6__ |
_inlineDatepicker | inst {var divSpan=$(target) |
_inlineShow | __pad7__ |
_dialogDatepicker | __pad8__ |
_dialogDatepicker | dateText |
_dialogDatepicker | onSelect =onSelect |
_dialogDatepicker | settings |
_dialogDatepicker | pos {var inst=this._dialogInst |
this | _pos =(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null) |
this _dialogInput this _pos[1] | px |
this | _inDialog =true |
return | this |
_destroyDatepicker | __pad9__ |
var | nodeName =target.nodeName.toLowerCase() |
_enableDatepicker | __pad10__ |
this | _disabledInputs =$.map(this._disabledInputs,function(value){return(value==target?null:value);}) |
_disableDatepicker | __pad11__ |
_isDisabledDatepicker | __pad12__ |
return | false |
_getInst | __pad13__ |
_getInst | PROP_NAME |
_changeDatepicker | __pad14__ |
_changeDatepicker | name |
_refreshDatepicker | __pad15__ |
_setDateDatepicker | __pad16__ |
_setDateDatepicker | date =new Date(year,month-1,day) |
_setDateDatepicker | endDate {var inst=this._getInst(target) |
_getDateDatepicker | __pad17__ |
_doKeyDown | __pad18__ |
var | handled =true |
_doKeyPress | __pad19__ |
var | chars =$.datepicker._possibleChars($.datepicker._get(inst,'dateFormat')) |
var | chr =String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode) |
_showDatepicker | __pad20__ |
var | beforeShow =$.datepicker._get(inst,'beforeShow') |
datepicker | _lastInput =input |
var | isFixed =false |
var | offset ={left:$.datepicker._pos[0],top:$.datepicker._pos[1]} |
inst | rangeStart =null |
_updateDatepicker | __pad21__ |
_updateDatepicker | height |
var | numMonths =this._getNumberOfMonths(inst) |
_checkOffset | __pad22__ |
var | browserWidth =window.innerWidth||document.documentElement.clientWidth |
var | browserHeight =window.innerHeight||document.documentElement.clientHeight |
var | scrollX =document.documentElement.scrollLeft||document.body.scrollLeft |
var | scrollY =document.documentElement.scrollTop||document.body.scrollTop |
else offset | left =(isFixed?scrollX:0) |
else offset | top =(isFixed?scrollY:0) |
_findPos | __pad23__ |
var | position =$(obj).offset() |
return [position.left, position.top] | |
_hideDatepicker | __pad24__ |
_hideDatepicker | duration {var inst=this._curInst |
var | rangeSelect =this._get(inst,'rangeSelect') |
datepicker | postProcess |
var | onClose =this._get(inst,'onClose') |
if(onClose) onClose.apply((inst.input?inst.input[0] this | _datepickerShowing =false |
inst settings | prompt =null |
this | _curInst =null |
_tidyDialog | __pad25__ |
this | _promptClass |
_checkExternalClick | __pad26__ |
var | $target =$(event.target) |
_adjustDate | __pad27__ |
_adjustDate | period {var target=$(id) |
_gotoToday | __pad28__ |
else {var date=new Date() | |
inst | selectedDay =date.getDate() |
inst | drawMonth =inst.selectedMonth=date.getMonth() |
inst | drawYear =inst.selectedYear=date.getFullYear() |
_selectMonthYear | __pad29__ |
_selectMonthYear | select |
inst | _selectingMonthYear =false |
_clickMonthYear | __pad30__ |
_changeFirstDay | __pad31__ |
_changeFirstDay | day {var target=$(id) |
inst settings | firstDay =day |
_selectDay | __pad32__ |
_selectDay | month =-1 |
_selectDay | year =-1 |
_selectDay | td |
var | target =$(id) |
inst | selectedMonth =inst.currentMonth=month |
inst | selectedYear =inst.currentYear=year |
_clearDate | __pad33__ |
inst | stayOpen =false |
inst | endDay =inst.endMonth=inst.endYear=inst.rangeStart=null |
_selectDate | __pad34__ |
_selectDate | dateStr {var target=$(id) |
_updateAlternate | __pad35__ |
_updateAlternate | altField |
noWeekends | __pad36__ |
iso8601Week | __pad37__ |
var | firstMon =new Date(checkDate.getFullYear(),1-1,4) |
dateStatus | __pad38__ |
parseDate | __pad39__ |
var | shortYearCutoff =(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff |
var | dayNamesShort =(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort |
var | dayNames =(settings?settings.dayNames:null)||this._defaults.dayNames |
var | monthNamesShort =(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort |
var | monthNames =(settings?settings.monthNames:null)||this._defaults.monthNames |
var | doy =-1 |
var | literal =false |
var | lookAhead |
var | getNumber |
var | getName |
var | checkLiteral |
var | iValue =0 |
ATOM | __pad40__ |
ATOM | COOKIE |
ATOM dd M | yy |
ATOM dd M | ISO_8601 |
ATOM dd M | RFC_822 |
ATOM dd M d M | y |
ATOM dd M d M | RFC_850 |
ATOM dd M d M dd M | RFC_1036 |
ATOM dd M d M dd M d M | RFC_1123 |
ATOM dd M d M dd M d M d M | RFC_2822 |
ATOM dd M d M dd M d M d M d M | RSS |
ATOM dd M d M dd M d M d M d M d M | TIMESTAMP |
ATOM dd M d M dd M d M d M d M d M | W3C |
ATOM dd M d M dd M d M d M d M d M | formatDate |
var | formatNumber |
var | formatName =function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);} |
var | output ='' |
datepicker _get | ( | inst, | |
'showOptions' | |||
) |
datepicker _hideDatepicker | ( | null | , |
'' | |||
) |
this _selectDate | ( | id | , |
this. | _formatDateinst, inst.currentDay, inst.currentMonth, inst.currentYear | ||
) |
datepicker _setDateFromField | ( | inst | ) |
this _showDatepicker | ( | this. | _dialogInput[0] | ) |
ui plugin add | ( | "draggable" | , |
"cursor" | , | ||
{start:function(e, ui){var t=$('body');if(t.css("cursor")) ui.options._cursor=t.css("cursor");t.css("cursor", ui.options.cursor);}, stop:function(e, ui){if(ui.options._cursor)$('body').css("cursor", ui.options._cursor);}} | |||
) |
catch | ( | err | ) |
Definition at line 411 of file jquery-ui-personalized-1.6rc2.min.js.
function clickHandler | ( | event | ) |
Definition at line 194 of file jquery-ui-personalized-1.6rc2.min.js.
function completed | ( | cancel | ) |
Definition at line 188 of file jquery-ui-personalized-1.6rc2.min.js.
this _dialogInput css | ( | 'left', | |
this._pos+'px'[0] | |||
) |
return e ctrlKey | ( | chr<' '||!chars||chars.indexOf(chr)>- | 1 | ) |
function Datepicker | ( | ) |
Definition at line 384 of file jquery-ui-personalized-1.6rc2.min.js.
else inst dpDiv | ( | duration | , |
postProcess | |||
) |
Definition at line 428 of file jquery-ui-personalized-1.6rc2.min.js.
extend | ( | $.[':'], | |
{data:function(a, i, m){return $.data(a, m[3]);}, tabbable:function(a, i, m){var nodeName=a.nodeName.toLowerCase();return(a.tabIndex >=0 &&(('a'==nodeName &&a.href)||(/input|select|textarea|button/.test(nodeName)&&'hidden'!=a.type &&!a.disabled))&&isVisible(a));}} | |||
) |
function extend | ( | $.ui., | |
{defaults:{appendTo:"parent", axis:false, cancel:":input", delay:0, distance:1, helper:"original", scope:"default", cssNamespace:"ui"}} | |||
) |
extend | ( | Datepicker. | prototype | ) |
extendRemove | ( | inst. | settings, |
settings||{} | |||
) |
function findActive | ( | headers, | |
selector | |||
) |
Definition at line 199 of file jquery-ui-personalized-1.6rc2.min.js.
for | ( | ) |
Definition at line 408 of file jquery-ui-personalized-1.6rc2.min.js.
iso8601Week date getMonth | ( | ) |
function getter | ( | namespace, | |
plugin, | |||
method, | |||
args | |||
) |
Definition at line 3 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 391 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | divSpan. | hasClassthis.markerClassName | ) |
if | ( | ! | inst | ) |
Definition at line 395 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | !this. | _pos | ) |
Definition at line 396 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | !$target. | hasClassthis.markerClassName | ) |
Definition at line 398 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | typeof | name = ='string' | ) |
Definition at line 411 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | inst &&!inst. | inline | ) |
if | ( | !$.datepicker. | _pos | ) |
Definition at line 421 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | isFixed &&$.browser. | opera | ) |
Definition at line 422 of file jquery-ui-personalized-1.6rc2.min.js.
else if | ( | !inst. | inline | ) |
Definition at line 423 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | inst.input &&inst.input.type! | [0] = 'hidden' | ) |
if | ( | this. | _getinst,'isRTL')||(offset.left+inst.dpDiv.width()-scrollX, |
browserWidth | |||
) |
if | ( | (offset.top+inst.dpDiv.height()-scrollY) | , |
browserHeight | |||
) |
Definition at line 1766 of file nsSessionStore.js.
if | ( | !inst|| | input &&inst!=$.data(input, PROP_NAME) | ) |
if | ( | rangeSelect &&inst. | stayOpen | ) |
if | ( | this. | _inDialog | ) |
Definition at line 442 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 446 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | inst.input &&inst._selectingMonthYear &&!$.browser. | msie | ) |
if | ( | inst. | stayOpen | ) |
Definition at line 451 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | this. | _getinst,'mandatory' | ) |
if | ( | this._get(inst,'rangeSelect')&& | dateStr | ) |
if | ( | ) |
Definition at line 463 of file jquery-ui-personalized-1.6rc2.min.js.
else if | ( | checkDate, | |
new | DatecheckDate.getFullYear(), 12-1, 28 | ||
) |
Definition at line 463 of file jquery-ui-personalized-1.6rc2.min.js.
if | ( | doy, | |
- | 1 | ||
) |
Definition at line 483 of file jquery-ui-personalized-1.6rc2.min.js.
function isVisible | ( | element | ) |
Definition at line 1 of file jquery-ui-personalized-1.6rc2.min.js.
input parents | ( | ) |
Definition at line 422 of file jquery-ui-personalized-1.6rc2.min.js.
function scopeCallback | ( | callback, | |
scope | |||
) |
Definition at line 188 of file jquery-ui-personalized-1.6rc2.min.js.
firstMon setDate | ( | firstMon.getDate()+1- | firstDay | ) |
function toggle | ( | toShow, | |
toHide, | |||
data, | |||
clickedActive, | |||
down | |||
) |
Definition at line 192 of file jquery-ui-personalized-1.6rc2.min.js.
function widget | ( | "ui.sortable" | , |
$.{},$.ui.mouse,{_init:function(){var o=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css('float')):false;this.offset=this.element.offset();this._mouseInit();}, plugins:{}, ui:function(inst){return{helper:(inst||this)["helper"], placeholder:(inst||this)["placeholder"]||$([]), position:(inst||this)["position"], absolutePosition:(inst||this)["positionAbs"], options:this.options, element:this.element, item:(inst||this)["currentItem"], sender:inst?inst.element:null};}, _propagate:function(n, e, inst, noPropagation){$.ui.plugin.call(this, n, [e, this.ui(inst)]);if(!noPropagation) this.element.triggerHandler(n=="sort"?n:"sort"+n, [e, this.ui(inst)], this.options[n]);}, serialize:function(o){var items=this._getItemsAsjQuery(o &&o.connected);var str=[];o=o||{};$(items).each(function(){var res=($(this.item||this).attr(o.attribute||'id')||'').match(o.expression||(/(.+)[-=_](.+)/));if(res) str.push((o.key||res[1]+'[]')+'='+(o.key &&o.expression?res[1]:res[2]));});return str.join('&');}, toArray:function(o){var items=this._getItemsAsjQuery(o &&o.connected);var ret=[];items.each(function(){ret.push($(this).attr(o.attr||'id'));});return ret;}, _intersectsWith:function(item){var x1=this.positionAbs.left, x2=x1+this.helperProportions.width, y1=this.positionAbs.top, y2=y1+this.helperProportions.height;var l=item.left, r=l+item.width, t=item.top, b=t+item.height;var dyClick=this.offset.click.top, dxClick=this.offset.click.left;var isOverElement=(y1+dyClick)>t &&(y1+dyClick)< b &&(x1+dxClick)>l &&(x1+dxClick)< r;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?'width':'height']>item[this.floating?'width':'height'])){return isOverElement;}else{return(l< x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)< r &&t< y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)< b);}}, _intersectsWithEdge:function(item){var x1=this.positionAbs.left, x2=x1+this.helperProportions.width, y1=this.positionAbs.top, y2=y1+this.helperProportions.height;var l=item.left, r=l+item.width, t=item.top, b=t+item.height;var dyClick=this.offset.click.top, dxClick=this.offset.click.left;var isOverElement=(y1+dyClick)>t &&(y1+dyClick)< b &&(x1+dxClick)>l &&(x1+dxClick)< r;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?'width':'height']>item[this.floating?'width':'height'])){if(!isOverElement) return false;if(this.floating){if((x1+dxClick)>l &&(x1+dxClick)< l+item.width/2) return 2;if((x1+dxClick)>l+item.width/2 &&(x1+dxClick)< r) return 1;}else{var height=item.height;var direction=y1-this.updateOriginalPosition.top< 0?2:1;if(direction==1 &&(y1+dyClick)< t+height/2){return 2;}else if(direction==2 &&(y1+dyClick)>t+height/2){return 1;}}}else{if(!(l< x1+(this.helperProportions.width/2)&&x2-(this.helperProportions.width/2)< r &&t< y1+(this.helperProportions.height/2)&&y2-(this.helperProportions.height/2)< b)) return false;if(this.floating){if(x2 >l &&x1< l) return 2;if(x1< r &&x2 >r) return 1;}else{if(y2 >t &&y1< t) return 1;if(y1< b &&y2 >b) return 2;}}return false;}, refresh:function(){this._refreshItems();this.refreshPositions();}, _getItemsAsjQuery:function(connected){var self=this;var items=[];var queries=[];if(this.options.connectWith &&connected){for(var i=this.options.connectWith.length-1;i >=0;i--){var cur=$(this.options.connectWith[i]);for(var j=cur.length-1;j >=0;j--){var inst=$.data(cur[j],'sortable');if(inst &&inst!=this &&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items, inst.element).not(".ui-sortable-helper"), inst]);}};};}queries.push([$.isFunction(this.options.items)?this.options.items.call(this.element, null,{options:this.options, item:this.currentItem}):$(this.options.items, this.element).not(".ui-sortable-helper"), this]);for(var i=queries.length-1;i >=0;i--){queries[i][0].each(function(){items.push(this);});};return $(items);}, _removeCurrentsFromItems:function(){var list=this.currentItem.find(":data(sortable-item)");for(var i=0;i< this.items.length;i++){for(var j=0;j< list.length;j++){if(list[j]==this.items[i].item[0]) this.items.splice(i, 1);};};}, _refreshItems:function(){this.items=[];this.containers=[this];var items=this.items;var self=this;var queries=[[$.isFunction(this.options.items)?this.options.items.call(this.element, null,{options:this.options, item:this.currentItem}):$(this.options.items, this.element), this]];if(this.options.connectWith){for(var i=this.options.connectWith.length-1;i >=0;i--){var cur=$(this.options.connectWith[i]);for(var j=cur.length-1;j >=0;j--){var inst=$.data(cur[j],'sortable');if(inst &&inst!=this &&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items, inst.element), inst]);this.containers.push(inst);}};};}for(var i=queries.length-1;i >=0;i--){queries[i][0].each(function(){$.data(this,'sortable-item', queries[i][1]);items.push({item:$(this), instance:queries[i][1], width:0, height:0, left:0, top:0});});};}, refreshPositions:function(fast){if(this.offsetParent){var po=this.offsetParent.offset();this.offset.parent={top:po.top+this.offsetParentBorders.top, left:po.left+this.offsetParentBorders.left};}for(var i=this.items.length-1;i >=0;i--){if(this.items[i].instance!=this.currentContainer &&this.currentContainer &&this.items[i].item[0]!=this.currentItem[0]) continue;var t=this.options.toleranceElement?$(this.options.toleranceElement, this.items[i].item):this.items[i].item;if(!fast){this.items[i].width=t[0].offsetWidth;this.items[i].height=t[0].offsetHeight;}var p=t.offset();this.items[i].left=p.left;this.items[i].top=p.top;};if(this.options.custom &&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);}else{for(var i=this.containers.length-1;i >=0;i--){var p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight();};}}, destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var i=this.items.length-1;i >=0;i--) this.items[i].item.removeData("sortable-item");}, _createPlaceholder:function(that){var self=that||this, o=self.options;if(!o.placeholder||o.placeholder.constructor==String){var className=o.placeholder;o.placeholder={element:function(){var el=$(document.createElement(self.currentItem[0].nodeName)).addClass(className||"ui-sortable-placeholder")[0];if(!className){el.style.visibility="hidden";document.body.appendChild(el);el.innerHTML=self.currentItem[0].innerHTML;document.body.removeChild(el);};return el;}, update:function(container, p){if(className &&!o.forcePlaceholderSize) return;if(!p.height()){p.height(self.currentItem.innerHeight()-parseInt(self.currentItem.css('paddingTop')||0, 10)-parseInt(self.currentItem.css('paddingBottom')||0, 10));};if(!p.width()){p.width(self.currentItem.innerWidth()-parseInt(self.currentItem.css('paddingLeft')||0, 10)-parseInt(self.currentItem.css('paddingRight')||0, 10));};}};}self.placeholder=$(o.placeholder.element.call(self.element, self.currentItem)) self.currentItem.parent()[0].appendChild(self.placeholder[0]);self.placeholder[0].parentNode.insertBefore(self.placeholder[0], self.currentItem[0]);o.placeholder.update(self, self.placeholder);}, _contactContainers:function(e){for(var i=this.containers.length-1;i >=0;i--){if(this._intersectsWith(this.containers[i].containerCache)){if(!this.containers[i].containerCache.over){if(this.currentContainer!=this.containers[i]){var dist=10000;var itemWithLeastDistance=null;var base=this.positionAbs[this.containers[i].floating?'left':'top'];for(var j=this.items.length-1;j >=0;j--){if(!contains(this.containers[i].element[0], this.items[j].item[0])) continue;var cur=this.items[j][this.containers[i].floating?'left':'top'];if(Math.abs(cur-base)< dist){dist=Math.abs(cur-base);itemWithLeastDistance=this.items[j];}}if(!itemWithLeastDistance &&!this.options.dropOnEmpty) continue;this.currentContainer=this.containers[i];itemWithLeastDistance?this.options.sortIndicator.call(this, e, itemWithLeastDistance, null, true):this.options.sortIndicator.call(this, e, null, this.containers[i].element, true);this._propagate("change", e);this.containers[i]._propagate("change", e, this);this.options.placeholder.update(this.currentContainer, this.placeholder);}this.containers[i]._propagate("over", e, this);this.containers[i].containerCache.over=1;}}else{if(this.containers[i].containerCache.over){this.containers[i]._propagate("out", e, this);this.containers[i].containerCache.over=0;}}};}, _mouseCapture:function(e, overrideHandle){if(this.options.disabled||this.options.type=='static') return false;this._refreshItems();var currentItem=null, self=this, nodes=$(e.target).parents().each(function(){if($.data(this,'sortable-item')==self){currentItem=$(this);return false;}});if($.data(e.target,'sortable-item')==self) currentItem=$(e.target);if(!currentItem) return false;if(this.options.handle &&!overrideHandle){var validHandle=false;$(this.options.handle, currentItem).find("*").andSelf().each(function(){if(this==e.target) validHandle=true;});if(!validHandle) return false;}this.currentItem=currentItem;this._removeCurrentsFromItems();return true;}, createHelper:function(e){var o=this.options;var helper=typeof o.helper=='function'?$(o.helper.apply(this.element[0], [e, this.currentItem])):(o.helper=="original"?this.currentItem:this.currentItem.clone());if(!helper.parents('body').length)$(o.appendTo!='parent'?o.appendTo:this.currentItem[0].parentNode)[0].appendChild(helper[0]);return helper;}, _mouseStart:function(e, overrideHandle, noActivation){var o=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this.createHelper(e);this.margins={left:(parseInt(this.currentItem.css("marginLeft"), 10)||0), top:(parseInt(this.currentItem.css("marginTop"), 10)||0)};this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top, left:this.offset.left-this.margins.left};this.offset.click={left:e.pageX-this.offset.left, top:e.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();this.offsetParentBorders={top:(parseInt(this.offsetParent.css("borderTopWidth"), 10)||0), left:(parseInt(this.offsetParent.css("borderLeftWidth"), 10)||0)};this.offset.parent={top:po.top+this.offsetParentBorders.top, left:po.left+this.offsetParentBorders.left};this.updateOriginalPosition=this.originalPosition=this._generatePosition(e);this.domPosition={prev:this.currentItem.prev()[0], parent:this.currentItem.parent()[0]};this.helperProportions={width:this.helper.outerWidth(), height:this.helper.outerHeight()};if(o.helper=="original"){this._storedCSS={position:this.currentItem.css("position"), top:this.currentItem.css("top"), left:this.currentItem.css("left"), clear:this.currentItem.css("clear")};}else{this.currentItem.hide();}this.helper.css({position:'absolute', clear:'both'}).addClass('ui-sortable-helper');this._createPlaceholder();this._propagate("start", e);if(!this._preserveHelperProportions) this.helperProportions={width:this.helper.outerWidth(), height:this.helper.outerHeight()};if(o.cursorAt){if(o.cursorAt.left!=undefined) this.offset.click.left=o.cursorAt.left;if(o.cursorAt.right!=undefined) this.offset.click.left=this.helperProportions.width-o.cursorAt.right;if(o.cursorAt.top!=undefined) this.offset.click.top=o.cursorAt.top;if(o.cursorAt.bottom!=undefined) this.offset.click.top=this.helperProportions.height-o.cursorAt.bottom;}if(o.containment){if(o.containment=='parent') o.containment=this.helper[0].parentNode;if(o.containment=='document'||o.containment=='window') this.containment=[0-this.offset.parent.left, 0-this.offset.parent.top,$(o.containment=='document'?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"), 10)||0),($(o.containment=='document'?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"), 10)||0)];if(!(/^(document|window|parent)$/).test(o.containment)){var ce=$(o.containment)[0];var co=$(o.containment).offset();var over=($(ce).css("overflow")!='hidden');this.containment=[co.left+(parseInt($(ce).css("borderLeftWidth"), 10)||0)-this.offset.parent.left, co.top+(parseInt($(ce).css("borderTopWidth"), 10)||0)-this.offset.parent.top, co.left+(over?Math.max(ce.scrollWidth, ce.offsetWidth):ce.offsetWidth)-(parseInt($(ce).css("borderLeftWidth"), 10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"), 10)||0), co.top+(over?Math.max(ce.scrollHeight, ce.offsetHeight):ce.offsetHeight)-(parseInt($(ce).css("borderTopWidth"), 10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.currentItem.css("marginBottom"), 10)||0)];}}if(!noActivation){for(var i=this.containers.length-1;i >=0;i--){this.containers[i]._propagate("activate", e, this);}}if($.ui.ddmanager)$.ui.ddmanager.current=this;if($.ui.ddmanager &&!o.dropBehaviour)$.ui.ddmanager.prepareOffsets(this, e);this.dragging=true;this._mouseDrag(e);return true;}, _convertPositionTo:function(d, pos){if(!pos) pos=this.position;var mod=d=="absolute"?1:-1;return{top:(pos.top+this.offset.parent.top *mod-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*mod+this.margins.top *mod), left:(pos.left+this.offset.parent.left *mod-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*mod+this.margins.left *mod)};}, _generatePosition:function(e){var o=this.options;var position={top:(e.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)), left:(e.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition) return position;if(this.containment){if(position.left< this.containment[0]) position.left=this.containment[0];if(position.top< this.containment[1]) position.top=this.containment[1];if(position.left >this.containment[2]) position.left=this.containment[2];if(position.top >this.containment[3]) position.top=this.containment[3];}if(o.grid){var top=this.originalPosition.top+Math.round((position.top-this.originalPosition.top)/o.grid[1])*o.grid[1];position.top=this.containment?(!(top< this.containment[1]||top >this.containment[3])?top:(!(top< this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;var left=this.originalPosition.left+Math.round((position.left-this.originalPosition.left)/o.grid[0])*o.grid[0];position.left=this.containment?(!(left< this.containment[0]||left >this.containment[2])?left:(!(left< this.containment[0])?left-o.grid[0]:left+o.grid[0])):left;}return position;}, _mouseDrag:function(e){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");$.ui.plugin.call(this,"sort", [e, this.ui()]);this.positionAbs=this._convertPositionTo("absolute");this.helper[0].style.left=this.position.left+'px';this.helper[0].style.top=this.position.top+'px';for(var i=this.items.length-1;i >=0;i--){var intersection=this._intersectsWithEdge(this.items[i]);if(!intersection) continue;if(this.items[i].item[0]!=this.currentItem[0]&&this.placeholder[intersection==1?"next":"prev"]()[0]!=this.items[i].item[0]&&!contains(this.placeholder[0], this.items[i].item[0])&&(this.options.type=='semi-dynamic'?!contains(this.element[0], this.items[i].item[0]):true)){this.updateOriginalPosition=this._generatePosition(e);this.direction=intersection==1?"down":"up";this.options.sortIndicator.call(this, e, this.items[i]);this._propagate("change", e);break;}}this._contactContainers(e);if($.ui.ddmanager)$.ui.ddmanager.drag(this, e);this.element.triggerHandler("sort", [e, this.ui()], this.options["sort"]);return false;}, _rearrange:function(e, i, a, hardRefresh){a?a[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=='down'?i.item[0]:i.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var self=this, counter=this.counter;window.setTimeout(function(){if(counter==self.counter) self.refreshPositions(!hardRefresh);}, 0);}, _mouseStop:function(e, noPropagation){if($.ui.ddmanager &&!this.options.dropBehaviour)$.ui.ddmanager.drop(this, e);if(this.options.revert){var self=this;var cur=self.placeholder.offset();$(this.helper).animate({left:cur.left-this.offset.parent.left-self.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft), top:cur.top-this.offset.parent.top-self.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)}, parseInt(this.options.revert, 10)||500, function(){self._clear(e);});}else{this._clear(e, noPropagation);}return false;}, _clear:function(e, noPropagation){if(!this._noFinalSort) this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.options.helper=="original") this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");elsethis.currentItem.show();if(this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0]) this._propagate("update", e, null, noPropagation);if(!contains(this.element[0], this.currentItem[0])){this._propagate("remove", e, null, noPropagation);for(var i=this.containers.length-1;i >=0;i--){if(contains(this.containers[i].element[0], this.currentItem[0])){this.containers[i]._propagate("update", e, this, noPropagation);this.containers[i]._propagate("receive", e, this, noPropagation);}};};for(var i=this.containers.length-1;i >=0;i--){this.containers[i]._propagate("deactivate", e, this, noPropagation);if(this.containers[i].containerCache.over){this.containers[i]._propagate("out", e, this);this.containers[i].containerCache.over=0;}}this.dragging=false;if(this.cancelHelperRemoval){this._propagate("beforeStop", e, null, noPropagation);this._propagate("stop", e, null, noPropagation);return false;}this._propagate("beforeStop", e, null, noPropagation);this.placeholder.remove();if(this.options.helper!="original") this.helper.remove();this.helper=null;this._propagate("stop", e, null, noPropagation);return true;}} | |||
) |
function widget | ( | "ui.dialog" | , |
{_init:function(){this.originalTitle=this.element.attr('title');this.options.title=this.options.title||this.originalTitle;var self=this, options=this.options, uiDialogContent=this.element.removeAttr('title').addClass('ui-dialog-content').wrap('< div/>').wrap('< div/>'), uiDialogContainer=(this.uiDialogContainer=uiDialogContent.parent()).addClass('ui-dialog-container').css({position:'relative', width:'100%', height:'100%'}), uiDialogTitlebar=(this.uiDialogTitlebar=$('< div/>')).addClass('ui-dialog-titlebar').append('< a href="#"class="ui-dialog-titlebar-close">< span >X</span ></a >').prependTo(uiDialogContainer), title=options.title||' ', titleId=$.ui.dialog.getTitleId(this.element), uiDialogTitle=$('< span/>').addClass('ui-dialog-title').attr('id', titleId).html(title).prependTo(uiDialogTitlebar), uiDialog=(this.uiDialog=uiDialogContainer.parent()).appendTo(document.body).hide().addClass('ui-dialog').addClass(options.dialogClass).addClass(uiDialogContent.attr('className')).removeClass('ui-dialog-content').css({position:'absolute', width:options.width, height:options.height, overflow:'hidden', zIndex:options.zIndex}).attr('tabIndex',-1).css('outline', 0).keydown(function(ev){(options.closeOnEscape &&ev.keyCode &&ev.keyCode==$.keyCode.ESCAPE &&self.close());}).mousedown(function(){self._moveToTop();}), uiDialogButtonPane=(this.uiDialogButtonPane=$('< div/>')).addClass('ui-dialog-buttonpane').css({position:'absolute', bottom:0}).appendTo(uiDialog);this.uiDialogTitlebarClose=$('.ui-dialog-titlebar-close', uiDialogTitlebar).hover(function(){$(this).addClass('ui-dialog-titlebar-close-hover');}, function(){$(this).removeClass('ui-dialog-titlebar-close-hover');}).mousedown(function(ev){ev.stopPropagation();}).click(function(){self.close();return false;});uiDialogTitlebar.find("*").add(uiDialogTitlebar).each(function(){$.ui.disableSelection(this);});(options.draggable &&$.fn.draggable &&this._makeDraggable());(options.resizable &&$.fn.resizable &&this._makeResizable());this._createButtons(options.buttons);this._isOpen=false;(options.bgiframe &&$.fn.bgiframe &&uiDialog.bgiframe());(options.autoOpen &&this.open());}, destroy:function(){(this.overlay &&this.overlay.destroy());this.uiDialog.hide();this.element.unbind('.dialog').removeData('dialog').removeClass('ui-dialog-content').hide().appendTo('body');this.uiDialog.remove();(this.originalTitle &&this.element.attr('title', this.originalTitle));}, close:function(){if(false===this._trigger('beforeclose', null,{options:this.options})){return;}(this.overlay &&this.overlay.destroy());this.uiDialog.hide(this.options.hide).unbind('keypress.ui-dialog');this._trigger('close', null,{options:this.options});$.ui.dialog.overlay.resize();this._isOpen=false;}, isOpen:function(){return this._isOpen;}, open:function(){if(this._isOpen){return;}this.overlay=this.options.modal?new $.ui.dialog.overlay(this):null;(this.uiDialog.next().length &&this.uiDialog.appendTo('body'));this._position(this.options.position);this.uiDialog.show(this.options.show);(this.options.autoResize &&this._size());this._moveToTop(true);(this.options.modal &&this.uiDialog.bind('keypress.ui-dialog', function(e){if(e.keyCode!=$.keyCode.TAB){return;}var tabbables=$(':tabbable', this), first=tabbables.filter(':first')[0], last=tabbables.filter(':last')[0];if(e.target==last &&!e.shiftKey){setTimeout(function(){first.focus();}, 1);}else if(e.target==first &&e.shiftKey){setTimeout(function(){last.focus();}, 1);}}));this.uiDialog.find(':tabbable:first').focus();this._trigger('open', null,{options:this.options});this._isOpen=true;}, _createButtons:function(buttons){var self=this, hasButtons=false, uiDialogButtonPane=this.uiDialogButtonPane;uiDialogButtonPane.empty().hide();$.each(buttons, function(){return!(hasButtons=true);});if(hasButtons){uiDialogButtonPane.show();$.each(buttons, function(name, fn){$('< button type="button"></button >').text(name).click(function(){fn.apply(self.element[0], arguments);}).appendTo(uiDialogButtonPane);});}}, _makeDraggable:function(){var self=this, options=this.options;this.uiDialog.draggable({cancel:'.ui-dialog-content', helper:options.dragHelper, handle:'.ui-dialog-titlebar', start:function(){self._moveToTop();(options.dragStart &&options.dragStart.apply(self.element[0], arguments));}, drag:function(){(options.drag &&options.drag.apply(self.element[0], arguments));}, stop:function(){(options.dragStop &&options.dragStop.apply(self.element[0], arguments));$.ui.dialog.overlay.resize();}});}, _makeResizable:function(handles){handles=(handles===undefined?this.options.resizable:handles);var self=this, options=this.options, resizeHandles=typeof handles=='string'?handles:'n, e, s, w, se, sw, ne, nw';this.uiDialog.resizable({cancel:'.ui-dialog-content', helper:options.resizeHelper, maxWidth:options.maxWidth, maxHeight:options.maxHeight, minWidth:options.minWidth, minHeight:options.minHeight, start:function(){(options.resizeStart &&options.resizeStart.apply(self.element[0], arguments));}, resize:function(){(options.autoResize &&self._size.apply(self));(options.resize &&options.resize.apply(self.element[0], arguments));}, handles:resizeHandles, stop:function(){(options.autoResize &&self._size.apply(self));(options.resizeStop &&options.resizeStop.apply(self.element[0], arguments));$.ui.dialog.overlay.resize();}});}, _moveToTop:function(force){if((this.options.modal &&!force)||(!this.options.stack &&!this.options.modal)){return this._trigger('focus', null,{options:this.options});}var maxZ=this.options.zIndex, options=this.options;$('.ui-dialog:visible').each(function(){maxZ=Math.max(maxZ, parseInt($(this).css('z-index'), 10)||options.zIndex);});(this.overlay &&this.overlay.$el.css('z-index',++maxZ));this.uiDialog.css('z-index',++maxZ);this._trigger('focus', null,{options:this.options});}, _position:function(pos){var wnd=$(window), doc=$(document), pTop=doc.scrollTop(), pLeft=doc.scrollLeft(), minTop=pTop;if($.inArray(pos,['center','top','right','bottom','left'])>=0){pos=[pos=='right'||pos=='left'?pos:'center', pos=='top'||pos=='bottom'?pos:'middle'];}if(pos.constructor!=Array){pos=['center','middle'];}if(pos[0].constructor==Number){pLeft+=pos[0];}else{switch(pos[0]){case'left':pLeft+=0;break;case'right':pLeft+=wnd.width()-this.uiDialog.width();break;default:case'center':pLeft+=(wnd.width()-this.uiDialog.width())/2;}}if(pos[1].constructor==Number){pTop+=pos[1];}else{switch(pos[1]){case'top':pTop+=0;break;case'bottom':pTop+=wnd.height()-this.uiDialog.height();break;default:case'middle':pTop+=(wnd.height()-this.uiDialog.height())/2;}}pTop=Math.max(pTop, minTop);this.uiDialog.css({top:pTop, left:pLeft});}, _setData:function(key, value){(setDataSwitch[key]&&this.uiDialog.data(setDataSwitch[key], value));switch(key){case"buttons":this._createButtons(value);break;case"draggable":(value?this._makeDraggable():this.uiDialog.draggable('destroy'));break;case"height":this.uiDialog.height(value);break;case"position":this._position(value);break;case"resizable":var uiDialog=this.uiDialog, isResizable=this.uiDialog.is(':data(resizable)');(isResizable &&!value &&uiDialog.resizable('destroy'));(isResizable &&typeof value=='string'&&uiDialog.resizable('option','handles', value));(isResizable||this._makeResizable(value));break;case"title":$(".ui-dialog-title", this.uiDialogTitlebar).html(value||' ');break;case"width":this.uiDialog.width(value);break;}$.widget.prototype._setData.apply(this, arguments);}, _size:function(){var container=this.uiDialogContainer, titlebar=this.uiDialogTitlebar, content=this.element, tbMargin=(parseInt(content.css('margin-top'), 10)||0)+(parseInt(content.css('margin-bottom'), 10)||0), lrMargin=(parseInt(content.css('margin-left'), 10)||0)+(parseInt(content.css('margin-right'), 10)||0);content.height(container.height()-titlebar.outerHeight()-tbMargin);content.width(container.width()-lrMargin);}} | |||
) |
var $target =$(event.target) |
Definition at line 445 of file jquery-ui-personalized-1.6rc2.min.js.
_enableDatepicker __pad10__ |
Definition at line 400 of file jquery-ui-personalized-1.6rc2.min.js.
_disableDatepicker __pad11__ |
Definition at line 403 of file jquery-ui-personalized-1.6rc2.min.js.
_isDisabledDatepicker __pad12__ |
Definition at line 407 of file jquery-ui-personalized-1.6rc2.min.js.
_getInst __pad13__ |
Definition at line 410 of file jquery-ui-personalized-1.6rc2.min.js.
_changeDatepicker __pad14__ |
Definition at line 411 of file jquery-ui-personalized-1.6rc2.min.js.
_refreshDatepicker __pad15__ |
Definition at line 413 of file jquery-ui-personalized-1.6rc2.min.js.
_setDateDatepicker __pad16__ |
Definition at line 413 of file jquery-ui-personalized-1.6rc2.min.js.
_getDateDatepicker __pad17__ |
Definition at line 413 of file jquery-ui-personalized-1.6rc2.min.js.
_doKeyDown __pad18__ |
Definition at line 414 of file jquery-ui-personalized-1.6rc2.min.js.
_doKeyPress __pad19__ |
Definition at line 418 of file jquery-ui-personalized-1.6rc2.min.js.
_showDatepicker __pad20__ |
Definition at line 418 of file jquery-ui-personalized-1.6rc2.min.js.
_updateDatepicker __pad21__ |
Definition at line 428 of file jquery-ui-personalized-1.6rc2.min.js.
_checkOffset __pad22__ |
Definition at line 429 of file jquery-ui-personalized-1.6rc2.min.js.
_findPos __pad23__ |
Definition at line 435 of file jquery-ui-personalized-1.6rc2.min.js.
_hideDatepicker __pad24__ |
Definition at line 436 of file jquery-ui-personalized-1.6rc2.min.js.
_tidyDialog __pad25__ |
Definition at line 444 of file jquery-ui-personalized-1.6rc2.min.js.
_checkExternalClick __pad26__ |
Definition at line 444 of file jquery-ui-personalized-1.6rc2.min.js.
_adjustDate __pad27__ |
Definition at line 446 of file jquery-ui-personalized-1.6rc2.min.js.
_gotoToday __pad28__ |
Definition at line 446 of file jquery-ui-personalized-1.6rc2.min.js.
_selectMonthYear __pad29__ |
Definition at line 448 of file jquery-ui-personalized-1.6rc2.min.js.
_clickMonthYear __pad30__ |
Definition at line 448 of file jquery-ui-personalized-1.6rc2.min.js.
_changeFirstDay __pad31__ |
Definition at line 449 of file jquery-ui-personalized-1.6rc2.min.js.
_selectDay __pad32__ |
Definition at line 449 of file jquery-ui-personalized-1.6rc2.min.js.
_clearDate __pad33__ |
Definition at line 455 of file jquery-ui-personalized-1.6rc2.min.js.
_selectDate __pad34__ |
Definition at line 456 of file jquery-ui-personalized-1.6rc2.min.js.
_updateAlternate __pad35__ |
Definition at line 462 of file jquery-ui-personalized-1.6rc2.min.js.
noWeekends __pad36__ |
Definition at line 463 of file jquery-ui-personalized-1.6rc2.min.js.
iso8601Week __pad37__ |
Definition at line 463 of file jquery-ui-personalized-1.6rc2.min.js.
dateStatus __pad38__ |
Definition at line 464 of file jquery-ui-personalized-1.6rc2.min.js.
parseDate __pad39__ |
Definition at line 464 of file jquery-ui-personalized-1.6rc2.min.js.
ATOM __pad40__ |
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
_inlineDatepicker __pad6__ |
Definition at line 394 of file jquery-ui-personalized-1.6rc2.min.js.
_inlineShow __pad7__ |
Definition at line 395 of file jquery-ui-personalized-1.6rc2.min.js.
_dialogDatepicker __pad8__ |
Definition at line 395 of file jquery-ui-personalized-1.6rc2.min.js.
_destroyDatepicker __pad9__ |
Definition at line 398 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 444 of file jquery-ui-personalized-1.6rc2.min.js.
if (onClose) onClose.apply((inst.input?inst.input[0] this _datepickerShowing =false |
Definition at line 442 of file jquery-ui-personalized-1.6rc2.min.js.
this _disabledInputs =$.map(this._disabledInputs,function(value){return(value==target?null:value);}) |
Definition at line 403 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 397 of file jquery-ui-personalized-1.6rc2.min.js.
this _lastInput =input |
Definition at line 420 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 396 of file jquery-ui-personalized-1.6rc2.min.js.
this _promptClass |
Definition at line 444 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 448 of file jquery-ui-personalized-1.6rc2.min.js.
_updateAlternate altField |
Definition at line 462 of file jquery-ui-personalized-1.6rc2.min.js.
function Autocompleter |
Definition at line 203 of file jquery-ui-personalized-1.6rc2.min.js.
var beforeShow =$.datepicker._get(inst,'beforeShow') |
Definition at line 420 of file jquery-ui-personalized-1.6rc2.min.js.
var browserHeight =window.innerHeight||document.documentElement.clientHeight |
Definition at line 429 of file jquery-ui-personalized-1.6rc2.min.js.
var browserWidth =window.innerWidth||document.documentElement.clientWidth |
Definition at line 429 of file jquery-ui-personalized-1.6rc2.min.js.
Autocompleter Cache |
Definition at line 230 of file jquery-ui-personalized-1.6rc2.min.js.
var chars =$.datepicker._possibleChars($.datepicker._get(inst,'dateFormat')) |
Definition at line 418 of file jquery-ui-personalized-1.6rc2.min.js.
var checkLiteral |
Definition at line 473 of file jquery-ui-personalized-1.6rc2.min.js.
var chr =String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode) |
Definition at line 418 of file jquery-ui-personalized-1.6rc2.min.js.
ATOM COOKIE |
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 413 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 456 of file jquery-ui-personalized-1.6rc2.min.js.
_dialogDatepicker dateText |
Definition at line 395 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 449 of file jquery-ui-personalized-1.6rc2.min.js.
var dayNames =(settings?settings.dayNames:null)||this._defaults.dayNames |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
var dayNamesShort =(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
ui ddmanager |
Definition at line 76 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 10 of file jquery-ui-personalized-1.6rc2.min.js.
var doy =-1 |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
inst drawMonth =inst.selectedMonth=date.getMonth() |
Definition at line 447 of file jquery-ui-personalized-1.6rc2.min.js.
inst drawYear =inst.selectedYear=date.getFullYear() |
Definition at line 447 of file jquery-ui-personalized-1.6rc2.min.js.
datepicker duration {var inst=this._curInst |
Definition at line 436 of file jquery-ui-personalized-1.6rc2.min.js.
else {var date=new Date() |
Definition at line 447 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 413 of file jquery-ui-personalized-1.6rc2.min.js.
inst endDay =inst.endMonth=inst.endYear=inst.rangeStart=null |
Definition at line 456 of file jquery-ui-personalized-1.6rc2.min.js.
function event |
Definition at line 394 of file jquery-ui-personalized-1.6rc2.min.js.
return false |
Definition at line 410 of file jquery-ui-personalized-1.6rc2.min.js.
var firstDay =day |
Definition at line 449 of file jquery-ui-personalized-1.6rc2.min.js.
var firstMon =new Date(checkDate.getFullYear(),1-1,4) |
Definition at line 463 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
var formatName =function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value]);} |
Definition at line 490 of file jquery-ui-personalized-1.6rc2.min.js.
var formatNumber |
Definition at line 488 of file jquery-ui-personalized-1.6rc2.min.js.
var getName |
Definition at line 469 of file jquery-ui-personalized-1.6rc2.min.js.
var getNumber |
Definition at line 467 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 326 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 414 of file jquery-ui-personalized-1.6rc2.min.js.
_updateDatepicker height |
Definition at line 428 of file jquery-ui-personalized-1.6rc2.min.js.
dateStatus inst {var divSpan=$(target) |
Definition at line 394 of file jquery-ui-personalized-1.6rc2.min.js.
ui intersect =function(draggable,droppable,toleranceMode){if(!droppable.offset)return false;var x1=(draggable.positionAbs||draggable.position.absolute).left,x2=x1+draggable.helperProportions.width,y1=(draggable.positionAbs||draggable.position.absolute).top,y2=y1+draggable.helperProportions.height;var l=droppable.offset.left,r=l+droppable.proportions.width,t=droppable.offset.top,b=t+droppable.proportions.height;switch(toleranceMode){case'fit':return(l<x1&&x2<r&&t<y1&&y2<b);break;case'intersect':return(l<x1+(draggable.helperProportions.width/2)&&x2-(draggable.helperProportions.width/2)<r&&t<y1+(draggable.helperProportions.height/2)&&y2-(draggable.helperProportions.height/2)<b);break;case'pointer':return(l<((draggable.positionAbs||draggable.position.absolute).left+(draggable.clickOffset||draggable.offset.click).left)&&((draggable.positionAbs||draggable.position.absolute).left+(draggable.clickOffset||draggable.offset.click).left)<r&&t<((draggable.positionAbs||draggable.position.absolute).top+(draggable.clickOffset||draggable.offset.click).top)&&((draggable.positionAbs||draggable.position.absolute).top+(draggable.clickOffset||draggable.offset.click).top)<b);break;case'touch':return((y1>=t&&y1<=b)||(y2>=t&&y2<=b)||(y1<t&&y2>b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1<l&&x2>r));break;default:return false;break;}} |
Definition at line 76 of file jquery-ui-personalized-1.6rc2.min.js.
_checkOffset isFixed =false |
Definition at line 422 of file jquery-ui-personalized-1.6rc2.min.js.
ATOM dd M ISO_8601 |
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
var iValue =0 |
Definition at line 474 of file jquery-ui-personalized-1.6rc2.min.js.
jQuery |
Definition at line 23 of file jquery-ui-personalized-1.6rc2.min.js.
function key |
Definition at line 394 of file jquery-ui-personalized-1.6rc2.min.js.
keyCode ={BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38} |
Definition at line 3 of file jquery-ui-personalized-1.6rc2.min.js.
function left =(isFixed?scrollX:0) |
Definition at line 432 of file jquery-ui-personalized-1.6rc2.min.js.
var literal =false |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
var lookAhead |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
var month =-1 |
Definition at line 449 of file jquery-ui-personalized-1.6rc2.min.js.
var monthNames =(settings?settings.monthNames:null)||this._defaults.monthNames |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
var monthNamesShort =(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
ui mouse |
Definition at line 15 of file jquery-ui-personalized-1.6rc2.min.js.
_changeDatepicker name |
Definition at line 411 of file jquery-ui-personalized-1.6rc2.min.js.
var nodeName =target.nodeName.toLowerCase() |
Definition at line 399 of file jquery-ui-personalized-1.6rc2.min.js.
var numMonths =this._getNumberOfMonths(inst) |
Definition at line 428 of file jquery-ui-personalized-1.6rc2.min.js.
_adjustDate offset ={left:$.datepicker._pos[0],top:$.datepicker._pos[1]} |
Definition at line 423 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 441 of file jquery-ui-personalized-1.6rc2.min.js.
var onSelect =onSelect |
Definition at line 395 of file jquery-ui-personalized-1.6rc2.min.js.
var output ='' |
Definition at line 490 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 446 of file jquery-ui-personalized-1.6rc2.min.js.
_dialogDatepicker pos {var inst=this._dialogInst |
Definition at line 395 of file jquery-ui-personalized-1.6rc2.min.js.
var position =$(obj).offset() |
Definition at line 436 of file jquery-ui-personalized-1.6rc2.min.js.
datepicker postProcess |
Definition at line 439 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 442 of file jquery-ui-personalized-1.6rc2.min.js.
_getInst PROP_NAME |
Definition at line 410 of file jquery-ui-personalized-1.6rc2.min.js.
widget prototype |
Definition at line 8 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 397 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 437 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 423 of file jquery-ui-personalized-1.6rc2.min.js.
function fn remove =function(){$("*",this).add(this).triggerHandler("remove");return _remove.apply(this,arguments);} |
Definition at line 1 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 436 of file jquery-ui-personalized-1.6rc2.min.js.
ATOM dd M d M dd M RFC_1036 |
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
ATOM dd M RFC_822 |
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
ATOM dd M d M RFC_850 |
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
var scrollX =document.documentElement.scrollLeft||document.body.scrollLeft |
Definition at line 429 of file jquery-ui-personalized-1.6rc2.min.js.
var scrollY =document.documentElement.scrollTop||document.body.scrollTop |
Definition at line 429 of file jquery-ui-personalized-1.6rc2.min.js.
NS_IMETHODIMP sbPrompter::Select |
Forward Select.
When called on the main-thread, return NS_ERROR_NOT_AVAILABLE if window of configured type is not available and configured to wait for window. XXXeps add HTML support
Definition at line 243 of file jquery-ui-personalized-1.6rc2.min.js.
_selectMonthYear select |
Definition at line 448 of file jquery-ui-personalized-1.6rc2.min.js.
inst selectedDay =date.getDate() |
Definition at line 447 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 451 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 451 of file jquery-ui-personalized-1.6rc2.min.js.
Autocompleter Selection |
Definition at line 259 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 395 of file jquery-ui-personalized-1.6rc2.min.js.
var shortYearCutoff =(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff |
Definition at line 466 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 390 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 456 of file jquery-ui-personalized-1.6rc2.min.js.
var target =$(id) |
Definition at line 450 of file jquery-ui-personalized-1.6rc2.min.js.
_selectDay td |
Definition at line 449 of file jquery-ui-personalized-1.6rc2.min.js.
return this |
Definition at line 398 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 435 of file jquery-ui-personalized-1.6rc2.min.js.
ui |
Definition at line 10 of file jquery-ui-personalized-1.6rc2.min.js.
value {inst.settings[key]=value |
Definition at line 394 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
function widget |
Definition at line 6 of file jquery-ui-personalized-1.6rc2.min.js.
Definition at line 486 of file jquery-ui-personalized-1.6rc2.min.js.
var year =-1 |
Definition at line 449 of file jquery-ui-personalized-1.6rc2.min.js.