{I" class:ETI"BundledAsset;FI"logical_path;TI"tjadmin.js;FI" pathname;TI"S/home/tonytonyjan/Dropbox/home/codes/tjadmin/app/assets/javascripts/tjadmin.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+ùRI" length;TiëÞI" digest;TI"%9191786e42b8bedfe8d542c9adb1e50e;FI" source;TI"ëÞ"ace"in window||(window.ace={}),ace.config={cookie_expiry:604800,storage_method:2},ace.settings={is:function(t,e){return 1==ace.data.get("settings",t+"-"+e)},exists:function(t,e){return null!==ace.data.get("settings",t+"-"+e)},set:function(t,e){ace.data.set("settings",t+"-"+e,1)},unset:function(t,e){ace.data.set("settings",t+"-"+e,-1)},remove:function(t,e){ace.data.remove("settings",t+"-"+e)},navbar_fixed:function(t){t=t||!1,!t&&ace.settings.is("sidebar","fixed")&&ace.settings.sidebar_fixed(!1);var e=document.getElementById("navbar");t?(ace.hasClass(e,"navbar-fixed-top")||ace.addClass(e,"navbar-fixed-top"),ace.hasClass(document.body,"navbar-fixed")||ace.addClass(document.body,"navbar-fixed"),ace.settings.set("navbar","fixed")):(ace.removeClass(e,"navbar-fixed-top"),ace.removeClass(document.body,"navbar-fixed"),ace.settings.unset("navbar","fixed")),document.getElementById("ace-settings-navbar").checked=t},breadcrumbs_fixed:function(t){t=t||!1,t&&!ace.settings.is("sidebar","fixed")&&ace.settings.sidebar_fixed(!0);var e=document.getElementById("breadcrumbs");t?(ace.hasClass(e,"breadcrumbs-fixed")||ace.addClass(e,"breadcrumbs-fixed"),ace.hasClass(document.body,"breadcrumbs-fixed")||ace.addClass(document.body,"breadcrumbs-fixed"),ace.settings.set("breadcrumbs","fixed")):(ace.removeClass(e,"breadcrumbs-fixed"),ace.removeClass(document.body,"breadcrumbs-fixed"),ace.settings.unset("breadcrumbs","fixed")),document.getElementById("ace-settings-breadcrumbs").checked=t},sidebar_fixed:function(t){t=t||!1,!t&&ace.settings.is("breadcrumbs","fixed")&&ace.settings.breadcrumbs_fixed(!1),t&&!ace.settings.is("navbar","fixed")&&ace.settings.navbar_fixed(!0);var e=document.getElementById("sidebar");t?(ace.hasClass(e,"sidebar-fixed")||ace.addClass(e,"sidebar-fixed"),ace.settings.set("sidebar","fixed")):(ace.removeClass(e,"sidebar-fixed"),ace.settings.unset("sidebar","fixed")),document.getElementById("ace-settings-sidebar").checked=t},sidebar_collapsed:function(t){t=t||!1;var e=document.getElementById("sidebar"),i=document.getElementById("sidebar-collapse").querySelector('[class*="icon-"]'),n=i.getAttribute("data-icon1"),s=i.getAttribute("data-icon2");t?(ace.addClass(e,"menu-min"),ace.removeClass(i,n),ace.addClass(i,s),ace.settings.set("sidebar","collapsed")):(ace.removeClass(e,"menu-min"),ace.removeClass(i,s),ace.addClass(i,n),ace.settings.unset("sidebar","collapsed"))}},ace.settings.check=function(t,e){if(ace.settings.exists(t,e)){var i=ace.settings.is(t,e),n={"navbar-fixed":"navbar-fixed-top","sidebar-fixed":"sidebar-fixed","breadcrumbs-fixed":"breadcrumbs-fixed","sidebar-collapsed":"menu-min"},s=document.getElementById(t);i!=ace.hasClass(s,n[t+"-"+e])&&ace.settings[t+"_"+e](i)}},ace.data_storage=function(t,e){var i="ace.",n=null,s=0;(1==t||t===e)&&"localStorage"in window&&null!==window.localStorage?(n=ace.storage,s=1):null==n&&(2==t||t===e)&&"cookie"in document&&null!==document.cookie&&(n=ace.cookie,s=2),this.set=function(t,e,a,o){if(n)if(a===o)a=e,e=t,null==a?n.remove(i+e):1==s?n.set(i+e,a):2==s&&n.set(i+e,a,ace.config.cookie_expiry);else if(1==s)null==a?n.remove(i+t+"."+e):n.set(i+t+"."+e,a);else if(2==s){var r=n.get(i+t),l=r?JSON.parse(r):{};if(null==a){if(delete l[e],0==ace.sizeof(l))return n.remove(i+t),void 0}else l[e]=a;n.set(i+t,JSON.stringify(l),ace.config.cookie_expiry)}},this.get=function(t,e,a){if(!n)return null;if(e===a)return e=t,n.get(i+e);if(1==s)return n.get(i+t+"."+e);if(2==s){var o=n.get(i+t),r=o?JSON.parse(o):{};return e in r?r[e]:null}},this.remove=function(t,e,i){n&&(e===i?(e=t,this.set(e,null)):this.set(t,e,null))}},ace.cookie={get:function(t){var e,i,n=document.cookie,s=t+"=";if(n){if(i=n.indexOf("; "+s),-1==i){if(i=n.indexOf(s),0!=i)return null}else i+=2;return e=n.indexOf(";",i),-1==e&&(e=n.length),decodeURIComponent(n.substring(i+s.length,e))}},set:function(t,e,i,n,s,a){var o=new Date;"object"==typeof i&&i.toGMTString?i=i.toGMTString():parseInt(i,10)?(o.setTime(o.getTime()+1e3*parseInt(i,10)),i=o.toGMTString()):i="",document.cookie=t+"="+encodeURIComponent(e)+(i?"; expires="+i:"")+(n?"; path="+n:"")+(s?"; domain="+s:"")+(a?"; secure":"")},remove:function(t,e){this.set(t,"",-1e3,e)}},ace.storage={get:function(t){return window.localStorage.getItem(t)},set:function(t,e){window.localStorage.setItem(t,e)},remove:function(t){window.localStorage.removeItem(t)}},ace.sizeof=function(t){var e=0;for(var i in t)t.hasOwnProperty(i)&&e++;return e},ace.hasClass=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")>-1},ace.addClass=function(t,e){if(!ace.hasClass(t,e)){var i=t.className;t.className=i+(i.length?" ":"")+e}},ace.removeClass=function(t,e){ace.replaceClass(t,e)},ace.replaceClass=function(t,e,i){var n=new RegExp("(^|\\s)"+e+"(\\s|$)","i");t.className=t.className.replace(n,function(t,e,n){return i?e+i+n:" "}).replace(/^\s+|\s+$/g,"")},ace.toggleClass=function(t,e){ace.hasClass(t,e)?ace.removeClass(t,e):ace.addClass(t,e)},ace.data=new ace.data_storage(ace.config.storage_method),!function(t){"use strict";t(function(){t.support.transition=function(){var t=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return i[t]}();return t&&{end:t}}()})}(window.jQuery),!function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){function i(){n.trigger("closed").remove()}var n,s=t(this),a=s.attr("data-target");a||(a=s.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,"")),n=t(a),e&&e.preventDefault(),n.length||(n=s.hasClass("alert")?s:s.parent()),n.trigger(e=t.Event("close")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.on(t.support.transition.end,i):i())};var n=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var n=t(this),s=n.data("alert");s||n.data("alert",s=new i(this)),"string"==typeof e&&s[e].call(n)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.alert.data-api",e,i.prototype.close)}(window.jQuery),!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.button.defaults,i)};e.prototype.setState=function(t){var e="disabled",i=this.$element,n=i.data(),s=i.is("input")?"val":"html";t+="Text",n.resetText||i.data("resetText",i[s]()),i[s](n[t]||this.options[t]),setTimeout(function(){"loadingText"==t?i.addClass(e).attr(e,e):i.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons-radio"]');t&&t.find(".active").removeClass("active"),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each(function(){var n=t(this),s=n.data("button"),a="object"==typeof i&&i;s||n.data("button",s=new e(this,a)),"toggle"==i?s.toggle():i&&s.setState(i)})},t.fn.button.defaults={loadingText:"loading..."},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.button.data-api","[data-toggle^=button]",function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle")})}(window.jQuery),!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.prototype={cycle:function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(e){var i=this.getActiveIndex(),n=this;if(!(e>this.$items.length-1||0>e))return this.sliding?this.$element.one("slid",function(){n.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",t(this.$items[e]))},pause:function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){return this.sliding?void 0:this.slide("next")},prev:function(){return this.sliding?void 0:this.slide("prev")},slide:function(e,i){var n,s=this.$element.find(".item.active"),a=i||s[e](),o=this.interval,r="next"==e?"left":"right",l="next"==e?"first":"last",c=this;if(this.sliding=!0,o&&this.pause(),a=a.length?a:this.$element.find(".item")[l](),n=t.Event("slide",{relatedTarget:a[0],direction:r}),!a.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var e=t(c.$indicators.children()[c.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(n),n.isDefaultPrevented())return;a.addClass(e),a[0].offsetWidth,s.addClass(r),a.addClass(r),this.$element.one(t.support.transition.end,function(){a.removeClass([e,r].join(" ")).addClass("active"),s.removeClass(["active",r].join(" ")),c.sliding=!1,setTimeout(function(){c.$element.trigger("slid")},0)})}else{if(this.$element.trigger(n),n.isDefaultPrevented())return;s.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return o&&this.cycle(),this}}};var i=t.fn.carousel;t.fn.carousel=function(i){return this.each(function(){var n=t(this),s=n.data("carousel"),a=t.extend({},t.fn.carousel.defaults,"object"==typeof i&&i),o="string"==typeof i?i:a.slide;s||n.data("carousel",s=new e(this,a)),"number"==typeof i?s.to(i):o?s[o]():a.interval&&s.pause().cycle()})},t.fn.carousel.defaults={interval:5e3,pause:"hover"},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this},t(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(e){var i,n,s=t(this),a=t(s.attr("data-target")||(i=s.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")),o=t.extend({},a.data(),s.data());a.carousel(o),(n=s.attr("data-slide-to"))&&a.data("carousel").pause().to(n).cycle(),e.preventDefault()})}(window.jQuery),!function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.collapse.defaults,i),this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.prototype={constructor:e,dimension:function(){var t=this.$element.hasClass("width");return t?"width":"height"},show:function(){var e,i,n,s;if(!this.transitioning&&!this.$element.hasClass("in")){if(e=this.dimension(),i=t.camelCase(["scroll",e].join("-")),n=this.$parent&&this.$parent.find("> .accordion-group > .in"),n&&n.length){if(s=n.data("collapse"),s&&s.transitioning)return;n.collapse("hide"),s||n.data("collapse",null)}this.$element[e](0),this.transition("addClass",t.Event("show"),"shown"),t.support.transition&&this.$element[e](this.$element[0][i])}},hide:function(){var e;!this.transitioning&&this.$element.hasClass("in")&&(e=this.dimension(),this.reset(this.$element[e]()),this.transition("removeClass",t.Event("hide"),"hidden"),this.$element[e](0))},reset:function(t){var e=this.dimension();return this.$element.removeClass("collapse")[e](t||"auto")[0].offsetWidth,this.$element[null!==t?"addClass":"removeClass"]("collapse"),this},transition:function(e,i,n){var s=this,a=function(){"show"==i.type&&s.reset(),s.transitioning=0,s.$element.trigger(n)};this.$element.trigger(i),i.isDefaultPrevented()||(this.transitioning=1,this.$element[e]("in"),t.support.transition&&this.$element.hasClass("collapse")?this.$element.one(t.support.transition.end,a):a())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var n=t(this),s=n.data("collapse"),a=t.extend({},t.fn.collapse.defaults,n.data(),"object"==typeof i&&i);s||n.data("collapse",s=new e(this,a)),"string"==typeof i&&s[i]()})},t.fn.collapse.defaults={toggle:!0},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.collapse.data-api","[data-toggle=collapse]",function(e){var i,n=t(this),s=n.attr("data-target")||e.preventDefault()||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),a=t(s).data("collapse")?"toggle":n.data();n[t(s).hasClass("in")?"addClass":"removeClass"]("collapsed"),t(s).collapse(a)})}(window.jQuery),!function(t){"use strict";function e(){t(".dropdown-backdrop").remove(),t(n).each(function(){i(t(this)).removeClass("open")})}function i(e){var i,n=e.attr("data-target");return n||(n=e.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),i=n&&t(n),i&&i.length||(i=e.parent()),i}var n="[data-toggle=dropdown]",s=function(e){var i=t(e).on("click.dropdown.data-api",this.toggle);t("html").on("click.dropdown.data-api",function(){i.parent().removeClass("open")})};s.prototype={constructor:s,toggle:function(){var n,s,a=t(this);if(!a.is(".disabled, :disabled"))return n=i(a),s=n.hasClass("open"),e(),s||("ontouchstart"in document.documentElement&&t('