diff --git a/www/js/zui/min.js b/www/js/zui/min.js index ebcd5818ee..9051f5faaf 100644 --- a/www/js/zui/min.js +++ b/www/js/zui/min.js @@ -1,5 +1,5 @@ /*! - * ZUI - v1.3.0 - 2015-05-07 + * ZUI - v1.3.0 - 2015-05-11 * http://zui.sexy * GitHub: https://github.com/easysoft/zui.git * Copyright (c) 2015 cnezsoft.com; Licensed MIT @@ -7,5 +7,6 @@ /* Some code copy from Bootstrap v3.0.0 by @fat and @mdo. (Copyright 2013 Twitter, Inc. Licensed under http://www.apache.org/licenses/)*/ -!function(a,b){"use strict";if("undefined"==typeof a)throw new Error("ZUI requires jQuery");a.zui||(a.zui=function(b){a.isPlainObject(b)&&a.extend(a.zui,b)});var c=0;a.zui({uuid:function(){return 1e3*(new Date).getTime()+c++%1e3},callEvent:function(b,c,d){if(a.isFunction(b)){"undefined"!=typeof d&&(b=a.proxy(b,d));var e=b(c);return c&&(c.result=e),!(void 0!==e&&!e)}return 1},clientLang:function(){var c,d=b.config;if("undefined"!=typeof d&&d.clientLang)c=d.clientLang;else{var e=a("html").attr("lang");c=e?e:navigator.userLanguage||navigator.userLanguage||"zh_cn"}return c.replace("-","_").toLowerCase()}}),a.fn.callEvent=function(b,c,d){var e=a(this),f=b.indexOf(".zui."),g=b;0>f&&d&&d.name?b+="."+d.name:g=b.substring(0,f);var h=a.Event(b,c);if("undefined"==typeof d&&f>0&&(d=e.data(b.substring(f+1))),d&&d.options){var i=d.options[g];a.isFunction(i)&&a.zui.callEvent(d.options[g],h,d)}return h}}(jQuery,window),function(){"use strict";String.prototype.format||(String.prototype.format=function(a){var b=this;if(arguments.length>0){var c;if(1==arguments.length&&"object"==typeof a)for(var d in a)void 0!==a[d]&&(c=new RegExp("({"+d+"})","g"),b=b.replace(c,a[d]));else for(var e=0;e=b&&c>a}),Date.prototype.isSameYear||(Date.prototype.isSameYear=function(a){return this.getFullYear()===a.getFullYear()})}(),function(a,b){"use strict";var c="localStorage",d=a[c],e=(a.store,"page_"+a.location.pathname+a.location.search),f=function(){this.slience=!0,this.enable=c in a&&a[c]&&a[c].setItem,this.storage=d,this.page=this.get(e,{})};f.prototype.pageSave=function(){if(b.isEmptyObject(this.page))this.remove(e);else{var a,c=[];for(a in this.page){var d=this.page[a];null===d&&c.push(a)}for(a=c.length-1;a>=0;a--)delete this.page[c[a]];this.set(e,this.page)}},f.prototype.pageRemove=function(a){"undefined"!=typeof this.page[a]&&(this.page[a]=null,this.pageSave())},f.prototype.pageClear=function(){this.page={},this.pageSave()},f.prototype.pageGet=function(a,b){var c=this.page[a];return void 0===b||null!==c&&void 0!==c?c:b},f.prototype.pageSet=function(a,c){b.isPlainObject(a)?b.extend(!0,this.page,a):this.page[this.serialize(a)]=c,this.pageSave()},f.prototype.check=function(){if(!this.enable&&!this.slience)throw new Error("Browser not support localStorage or enable status been set true.");return this.enable},f.prototype.length=function(){return this.check()?d.getLength?d.getLength():d.length:0},f.prototype.removeItem=function(a){return d.removeItem(a),this},f.prototype.remove=function(a){return this.removeItem(a)},f.prototype.getItem=function(a){return d.getItem(a)},f.prototype.get=function(a,b){var c=this.deserialize(this.getItem(a));return"undefined"!=typeof c&&null!==c||"undefined"==typeof b?c:b},f.prototype.key=function(a){return d.key(a)},f.prototype.setItem=function(a,b){return d.setItem(a,b),this},f.prototype.set=function(a,b){return void 0===b?this.remove(a):(this.setItem(a,this.serialize(b)),this)},f.prototype.clear=function(){return d.clear(),this},f.prototype.forEach=function(a){for(var b=d.length-1;b>=0;b--){var c=d.key(b);a(c,this.get(c))}return this},f.prototype.getAll=function(){var a={};return this.forEach(function(b,c){a[b]=c}),a},f.prototype.serialize=function(a){return"string"==typeof a?a:JSON.stringify(a)},f.prototype.deserialize=function(a){if("string"!=typeof a)return void 0;try{return JSON.parse(a)}catch(b){return a||void 0}},b.zui({store:new f})}(window,jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(a){"use strict";var b={zh_cn:'您的浏览器版本过低,无法体验所有功能,建议升级或者更换浏览器。 了解更多...',zh_tw:'您的瀏覽器版本過低,無法體驗所有功能,建議升級或者更换瀏覽器。了解更多...',en:'Your browser is too old, it has been unable to experience the colorful internet. We strongly recommend that you upgrade a better one. Learn more...'},c=function(){var a=this.isIE,b=a();if(b)for(var c=10;c>5;c--)if(a(c)){b=c;break}this.ie=b,this.cssHelper()};c.prototype.cssHelper=function(){var b=this.ie,c=a("html");c.toggleClass("ie",b).removeClass("ie-6 ie-7 ie-8 ie-9 ie-10"),b&&c.addClass("ie-"+b).toggleClass("gt-ie-7 gte-ie-8 support-ie",b>=8).toggleClass("lte-ie-7 lt-ie-8 outdated-ie",8>b).toggleClass("gt-ie-8 gte-ie-9",b>=9).toggleClass("lte-ie-8 lt-ie-9",9>b).toggleClass("gt-ie-9 gte-ie-10",b>=10).toggleClass("lte-ie-9 lt-ie-10",10>b)},c.prototype.tip=function(){if(this.ie&&this.ie<8){var c=a("#browseHappyTip");c.length||(c=a('
'),c.prependTo("body")),c.find(".content").html(this.browseHappyTip||b[a.zui.clientLang()||"zh_cn"])}},c.prototype.isIE=function(a){var b=document.createElement("b");return b.innerHTML="",1===b.getElementsByTagName("i").length},c.prototype.isIE10=function(){return!1},a.zui({browser:new c}),a(function(){a("body").hasClass("disabled-browser-tip")||a.zui.browser.tip()})}(jQuery),+function(a){"use strict";var b="zui.collapse",c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};c.DEFAULTS={toggle:!0},c.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var c=a.Event("show."+b);if(this.$element.trigger(c),!c.isDefaultPrevented()){var d=this.$parent&&this.$parent.find("> .panel > .in");if(d&&d.length){var e=d.data(b);if(e&&e.transitioning)return;d.collapse("hide"),e||d.data(b,null)}var f=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[f](0),this.transitioning=1;var g=function(){this.$element.removeClass("collapsing").addClass("in")[f]("auto"),this.transitioning=0,this.$element.trigger("shown."+b)};if(!a.support.transition)return g.call(this);var h=a.camelCase(["scroll",f].join("-"));this.$element.one(a.support.transition.end,a.proxy(g,this)).emulateTransitionEnd(350)[f](this.$element[0][h])}}},c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var c=a.Event("hide."+b);if(this.$element.trigger(c),!c.isDefaultPrevented()){var d=this.dimension();this.$element[d](this.$element[d]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.trigger("hidden."+b).removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[d](0).one(a.support.transition.end,a.proxy(e,this)).emulateTransitionEnd(350):e.call(this)}}},c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var d=a.fn.collapse;a.fn.collapse=function(d){return this.each(function(){var e=a(this),f=e.data(b),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof d&&d);f||e.data(b,f=new c(this,g)),"string"==typeof d&&f[d]()})},a.fn.collapse.Constructor=c,a.fn.collapse.noConflict=function(){return a.fn.collapse=d,this},a(document).on("click."+b+".data-api","[data-toggle=collapse]",function(c){var d,e=a(this),f=e.attr("data-target")||c.preventDefault()||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),g=a(f),h=g.data(b),i=h?"toggle":e.data(),j=e.attr("data-parent"),k=j&&a(j);h&&h.transitioning||(k&&k.find('[data-toggle=collapse][data-parent="'+j+'"]').not(e).addClass("collapsed"),e[g.hasClass("in")?"addClass":"removeClass"]("collapsed")),g.collapse(i)})}(window.jQuery),+function(a){"use strict";function b(){a(e).remove(),a(f).each(function(b){var e=c(a(this));e.hasClass("open")&&(e.trigger(b=a.Event("hide."+d)),b.isDefaultPrevented()||e.removeClass("open").trigger("hidden."+d))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d="zui.dropdown",e=".dropdown-backdrop",f="[data-toggle=dropdown]",g=function(b){a(b).on("click."+d,this.toggle)};g.prototype.toggle=function(e){var f=a(this);if(!f.is(".disabled, :disabled")){var g=c(f),h=g.hasClass("open");if(b(),!h){if("ontouchstart"in document.documentElement&&!g.closest(".navbar-nav").length&&a('