From 80957347adb7e173a93bb3d001d0b94c7ee71580 Mon Sep 17 00:00:00 2001 From: Catouse Date: Fri, 11 Mar 2016 10:07:34 +0800 Subject: [PATCH 1/7] * change order of buttons in bootbox by update zui. --- www/js/zui/min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/zui/min.js b/www/js/zui/min.js index 2765619ebb..5f219850a4 100644 --- a/www/js/zui/min.js +++ b/www/js/zui/min.js @@ -1,5 +1,5 @@ /*! - * ZUI - v1.4.0 - 2016-02-22 + * ZUI - v1.4.0 - 2016-03-11 * http://zui.sexy * GitHub: https://github.com/easysoft/zui.git * Copyright (c) 2016 cnezsoft.com; Licensed MIT @@ -8,4 +8,4 @@ /* Some code copy from Bootstrap v3.0.0 by @fat and @mdo. (Copyright 2013 Twitter, Inc. Licensed under http://www.apache.org/licenses/)*/ !function(t,e){"use strict";if("undefined"==typeof t)throw new Error("ZUI requires jQuery");t.zui||(t.zui=function(e){t.isPlainObject(e)&&t.extend(t.zui,e)});var o=0;t.zui({uuid:function(){return 1e3*(new Date).getTime()+o++%1e3},callEvent:function(e,o,n){if(t.isFunction(e)){void 0!==n&&(e=t.proxy(e,n));var i=e(o);return o&&(o.result=i),!(void 0!==i&&!i)}return 1},clientLang:function(){var o,n=e.config;if("undefined"!=typeof n&&n.clientLang)o=n.clientLang;else{var i=t("html").attr("lang");o=i?i:navigator.userLanguage||navigator.userLanguage||"zh_cn"}return o.replace("-","_").toLowerCase()}}),t.fn.callEvent=function(e,o,n){var i=t(this),a=e.indexOf(".zui."),r=e;0>a&&n&&n.name?e+="."+n.name:r=e.substring(0,a);var s=t.Event(e,o);if(void 0===n&&a>0&&(n=i.data(e.substring(a+1))),n&&n.options){var l=n.options[r];t.isFunction(l)&&t.zui.callEvent(n.options[r],s,n)}return s}}(jQuery,window),function(){"use strict";String.prototype.format||(String.prototype.format=function(t){var e=this;if(arguments.length>0){var o;if(1==arguments.length&&"object"==typeof t)for(var n in t)void 0!==t[n]&&(o=new RegExp("({"+n+"})","g"),e=e.replace(o,t[n]));else for(var i=0;i=e&&o>t}),Date.prototype.isSameYear||(Date.prototype.isSameYear=function(t){return this.getFullYear()===t.getFullYear()})}(),function(t,e){"use strict";var o="localStorage",n=t[o],i=(t.store,"page_"+t.location.pathname+t.location.search),a=function(){this.slience=!0,this.enable=o in t&&t[o]&&t[o].setItem,this.storage=n,this.page=this.get(i,{})};a.prototype.pageSave=function(){if(e.isEmptyObject(this.page))this.remove(i);else{var t,o=[];for(t in this.page){var n=this.page[t];null===n&&o.push(t)}for(t=o.length-1;t>=0;t--)delete this.page[o[t]];this.set(i,this.page)}},a.prototype.pageRemove=function(t){"undefined"!=typeof this.page[t]&&(this.page[t]=null,this.pageSave())},a.prototype.pageClear=function(){this.page={},this.pageSave()},a.prototype.pageGet=function(t,e){var o=this.page[t];return void 0===e||null!==o&&void 0!==o?o:e},a.prototype.pageSet=function(t,o){e.isPlainObject(t)?e.extend(!0,this.page,t):this.page[this.serialize(t)]=o,this.pageSave()},a.prototype.check=function(){if(!this.enable&&!this.slience)throw new Error("Browser not support localStorage or enable status been set true.");return this.enable},a.prototype.length=function(){return this.check()?n.getLength?n.getLength():n.length:0},a.prototype.removeItem=function(t){return n.removeItem(t),this},a.prototype.remove=function(t){return this.removeItem(t)},a.prototype.getItem=function(t){return n.getItem(t)},a.prototype.get=function(t,e){var o=this.deserialize(this.getItem(t));return"undefined"!=typeof o&&null!==o||"undefined"==typeof e?o:e},a.prototype.key=function(t){return n.key(t)},a.prototype.setItem=function(t,e){return n.setItem(t,e),this},a.prototype.set=function(t,e){return void 0===e?this.remove(t):(this.setItem(t,this.serialize(e)),this)},a.prototype.clear=function(){return n.clear(),this},a.prototype.forEach=function(t){for(var e=n.length-1;e>=0;e--){var o=n.key(e);t(o,this.get(o))}return this},a.prototype.getAll=function(){var t={};return this.forEach(function(e,o){t[e]=o}),t},a.prototype.serialize=function(t){return"string"==typeof t?t:JSON.stringify(t)},a.prototype.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},e.zui({store:new a})}(window,jQuery),function(t,e,o){"use strict";function n(t){if(t=t.toLowerCase(),t&&p.test(t)){var e;if(4===t.length){var o="#";for(e=1;4>e;e+=1)o+=t.slice(e,e+1).concat(t.slice(e,e+1));t=o}var n=[];for(e=1;7>e;e+=2)n.push(parseInt("0x"+t.slice(e,e+2)));return{r:n[0],g:n[1],b:n[2],a:1}}throw new Error("function hexToRgb: Wrong hex string! (hex: "+t+")")}function i(e){return"string"==typeof e&&("transparent"===e.toLowerCase()||f[e.toLowerCase()]||p.test(t.trim(e.toLowerCase())))}function a(t){function e(t){return t=0>t?t+1:t>1?t-1:t,1>6*t?p+(r-p)*t*6:1>2*t?r:2>3*t?p+(r-p)*(2/3-t)*6:p}var o=t.h,n=t.s,i=t.l,a=t.a;o=l(o)%360/360,n=s(l(n)),i=s(l(i)),a=s(l(a));var r=.5>=i?i*(n+1):i+n-i*n,p=2*i-r,f={r:255*e(o+1/3),g:255*e(o),b:255*e(o-1/3),a:a};return f}function r(t,o,n){return void 0===n&&(n=0),void 0===o&&(o=255),e.min(e.max(t,n),o)}function s(t,e){return r(t,e)}function l(t){return"number"==typeof t?t:parseFloat(t)}var p=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,f={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},c=function(t,e,o,i){if(this.r=0,this.g=0,this.b=0,this.a=1,void 0!==i&&(this.a=s(l(i),1)),void 0!==t&&void 0!==e&&void 0!==o)this.r=parseInt(s(l(t),255)),this.g=parseInt(s(l(e),255)),this.b=parseInt(s(l(o),255));else if(void 0!==t){var r=typeof t;if("string"==r)t=t.toLowerCase(),"transparent"===t?this.a=0:f[t]?this.rgb(n(f[t])):this.rgb(n(t));else if("number"==r&&void 0===e)this.r=parseInt(s(t,255)),this.g=this.r,this.b=this.r;else if("object"==r&&t.hasOwnProperty("r"))this.r=parseInt(s(l(t.r),255)),t.hasOwnProperty("g")&&(this.g=parseInt(s(l(t.g),255))),t.hasOwnProperty("b")&&(this.b=parseInt(s(l(t.b),255))),t.hasOwnProperty("a")&&(this.a=s(l(t.a),1));else if("object"==r&&t.hasOwnProperty("h")){var p={h:s(l(t.h),360),s:1,l:1,a:1};t.hasOwnProperty("s")&&(p.s=s(l(t.s),1)),t.hasOwnProperty("l")&&(p.l=s(l(t.l),1)),t.hasOwnProperty("a")&&(p.a=s(l(t.a),1)),this.rgb(a(p))}}};c.prototype.rgb=function(t){if(void 0!==t){if("object"==typeof t)t.hasOwnProperty("r")&&(this.r=parseInt(s(l(t.r),255))),t.hasOwnProperty("g")&&(this.g=parseInt(s(l(t.g),255))),t.hasOwnProperty("b")&&(this.b=parseInt(s(l(t.b),255))),t.hasOwnProperty("a")&&(this.a=s(l(t.a),1));else{var e=parseInt(l(t));this.r=e,this.g=e,this.b=e}return this}return{r:this.r,g:this.g,b:this.b,a:this.a}},c.prototype.hue=function(t){var e=this.toHsl();return void 0===t?e.h:(e.h=s(l(t),360),this.rgb(a(e)),this)},c.prototype.darken=function(t){var e=this.toHsl();return e.l-=t/100,e.l=s(e.l,1),this.rgb(a(e)),this},c.prototype.clone=function(){return new c(this.r,this.g,this.b,this.a)},c.prototype.lighten=function(t){return this.darken(-t)},c.prototype.fade=function(t){return this.a=s(t/100,1),this},c.prototype.spin=function(t){var e=this.toHsl(),o=(e.h+t)%360;return e.h=0>o?360+o:o,this.rgb(a(e)),this},c.prototype.toHsl=function(){var t,o,n=this.r/255,i=this.g/255,a=this.b/255,r=this.a,s=e.max(n,i,a),l=e.min(n,i,a),p=(s+l)/2,f=s-l;if(s===l)t=o=0;else{switch(o=p>.5?f/(2-s-l):f/(s+l),s){case n:t=(i-a)/f+(a>i?6:0);break;case i:t=(a-n)/f+2;break;case a:t=(n-i)/f+4}t/=6}return{h:360*t,s:o,l:p,a:r}},c.prototype.luma=function(){var t=this.r/255,o=this.g/255,n=this.b/255;return t=.03928>=t?t/12.92:e.pow((t+.055)/1.055,2.4),o=.03928>=o?o/12.92:e.pow((o+.055)/1.055,2.4),n=.03928>=n?n/12.92:e.pow((n+.055)/1.055,2.4),.2126*t+.7152*o+.0722*n},c.prototype.saturate=function(t){var e=this.toHsl();return e.s+=t/100,e.s=s(e.s),this.rgb(a(e)),this},c.prototype.desaturate=function(t){return this.saturate(-t)},c.prototype.contrast=function(t,e,o){if(e="undefined"==typeof e?new c(255,255,255,1):new c(e),t="undefined"==typeof t?new c(0,0,0,1):new c(t),this.a<.5)return t;if(o=void 0===o?.43:l(o),t.luma()>e.luma()){var n=e;e=t,t=n}return this.luma()0?this.a<1?"rgba("+this.r+","+this.g+","+this.b+","+this.a+")":this.hexStr():"transparent"},c.prototype.isColor=i,t.zui({Color:c})}(jQuery,Math,window),function(t){"use strict";var e=0,o=["primary","red","yellow","green","blue","purple","brown","dark"],n={primary:"#3280fc",secondary:"#145ccd",pale:"#ebf2f9",fore:"#353535",back:"#fff",grayDarker:"#222222",grayDark:"#333333",gray:"#808080",grayLight:"#dddddd",grayLighter:"#e5e5e5",grayPale:"#f1f1f1",white:"#fff",black:"#000",red:"#ea644a",yellow:"#f1a325",green:"#38b03f",blue:"#03b8cf",purple:"#8666b8",brown:"#bd7b46",greenPale:"#ddf4df",yellowPale:"#fff0d5",redPale:"#ffe5e0",bluePale:"#ddf3f5",brownPale:"#f7ebe1",purplePale:"#f5eeff",light:"#fff",dark:"#353535",success:"#38b03f",warning:"#f1a325",danger:"#ea644a",info:"#03b8cf",important:"#bd7b46",special:"#8666b8",successPale:"#ddf4df",warningPale:"#fff0d5",dangerPale:"#ffe5e0",infoPale:"#ddf3f5",importantPale:"#f7ebe1",specialPale:"#f5eeff"};n.get=function(i){return("undefined"==typeof i||"random"===i)&&(i=o[e++%o.length]),new t.zui.Color(n[i]?n[i]:i)},t.zui({colorset:n}),t.zui.Color&&t.extend(t.zui.Color,n)}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var o in e)if(void 0!==t.style[o])return{end:e[o]};return!1}t.fn.emulateTransitionEnd=function(e){var o=!1,n=this;t(this).one("bsTransitionEnd",function(){o=!0});var i=function(){o||t(n).trigger(t.support.transition.end)};return setTimeout(i,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";var e=function(o,n){this.$element=t(o),this.options=t.extend({},e.DEFAULTS,n),this.isLoading=!1};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var o="disabled",n=this.$element,i=n.is("input")?"val":"html",a=n.data();e+="Text",a.resetText||n.data("resetText",n[i]()),n[i](a[e]||this.options[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,n.addClass(o).attr(o,o)):this.isLoading&&(this.isLoading=!1,n.removeClass(o).removeAttr(o))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var o=this.$element.find("input");"radio"==o.prop("type")&&(o.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&o.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=function(o){return this.each(function(){var n=t(this),i=n.data("zui.button"),a="object"==typeof o&&o;i||n.data("zui.button",i=new e(this,a)),"toggle"==o?i.toggle():o&&i.setState(o)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.zui.button.data-api","[data-toggle^=button]",function(e){var o=t(e.target);o.hasClass("btn")||(o=o.closest(".btn")),o.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e={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...'},o=function(){var t=this.isIE()||this.isIE10()||!1;if(t)for(var e=10;e>5;e--)if(this.isIE(e)){t=e;break}this.ie=t,this.cssHelper()};o.prototype.cssHelper=function(){var e=this.ie,o=t("html");o.toggleClass("ie",e).removeClass("ie-6 ie-7 ie-8 ie-9 ie-10"),e&&o.addClass("ie-"+e).toggleClass("gt-ie-7 gte-ie-8 support-ie",e>=8).toggleClass("lte-ie-7 lt-ie-8 outdated-ie",8>e).toggleClass("gt-ie-8 gte-ie-9",e>=9).toggleClass("lte-ie-8 lt-ie-9",9>e).toggleClass("gt-ie-9 gte-ie-10",e>=10).toggleClass("lte-ie-9 lt-ie-10",10>e)},o.prototype.tip=function(o){var n=t("#browseHappyTip");n.length||(n=t('
'),n.prependTo("body")),n.find(".content").html(o||this.browseHappyTip||e[t.zui.clientLang()||"zh_cn"])},o.prototype.isIE=function(t){if(10===t)return this.isIE10();var e=document.createElement("b");return e.innerHTML="",1===e.getElementsByTagName("i").length},o.prototype.isIE10=function(){return!1},t.zui({browser:new o}),t(function(){t("body").hasClass("disabled-browser-tip")||t.zui.browser.ie&&t.zui.browser.ie<8&&t.zui.browser.tip()})}(jQuery),+function(t){"use strict";var e="zui.collapse",o=function(e,n){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,n),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var o=t.Event("show."+e);if(this.$element.trigger(o),!o.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in");if(n&&n.length){var i=n.data(e);if(i&&i.transitioning)return;n.collapse("hide"),i||n.data(e,null)}var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("in")[a]("auto"),this.transitioning=0,this.$element.trigger("shown."+e)};if(!t.support.transition)return r.call(this);var s=t.camelCase(["scroll",a].join("-"));this.$element.one(t.support.transition.end,t.proxy(r,this)).emulateTransitionEnd(350)[a](this.$element[0][s])}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var o=t.Event("hide."+e);if(this.$element.trigger(o),!o.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.trigger("hidden."+e).removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[n](0).one(t.support.transition.end,t.proxy(i,this)).emulateTransitionEnd(350):i.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=t.fn.collapse;t.fn.collapse=function(n){return this.each(function(){var i=t(this),a=i.data(e),r=t.extend({},o.DEFAULTS,i.data(),"object"==typeof n&&n);a||i.data(e,a=new o(this,r)),"string"==typeof n&&a[n]()})},t.fn.collapse.Constructor=o,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click."+e+".data-api","[data-toggle=collapse]",function(o){var n,i=t(this),a=i.attr("data-target")||o.preventDefault()||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(a),s=r.data(e),l=s?"toggle":i.data(),p=i.attr("data-parent"),f=p&&t(p);s&&s.transitioning||(f&&f.find('[data-toggle=collapse][data-parent="'+p+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),r.collapse(l)})}(window.jQuery),+function(t){"use strict";function e(){t(i).remove(),t(a).each(function(e){var i=o(t(this));i.hasClass("open")&&(i.trigger(e=t.Event("hide."+n)),e.isDefaultPrevented()||i.removeClass("open").trigger("hidden."+n))})}function o(e){var o=e.attr("data-target");o||(o=e.attr("href"),o=o&&/#/.test(o)&&o.replace(/.*(?=#[^\s]*$)/,""));var n=o&&t(o);return n&&n.length?n:e.parent()}var n="zui.dropdown",i=".dropdown-backdrop",a="[data-toggle=dropdown]",r=function(e){t(e).on("click."+n,this.toggle)};r.prototype.toggle=function(i){var a=t(this);if(!a.is(".disabled, :disabled")){var r=o(a),s=r.hasClass("open");if(e(),!s){if("ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t('