mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-16 09:49:54 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11709 201d5d3c-b55e-5fd7-737f-ddc643e51545
45 lines
21 KiB
JavaScript
45 lines
21 KiB
JavaScript
jQuery(function(b){function e(){a.width("99.99%");setTimeout(function(){a.removeAttr("style");g.height()>a.height()&&a.height(g.height())},100)}window.scrollTo(0,0);b(".x .skipNav>a").click(function(){b(b(this).attr("href")).attr("tabindex","0").css("outline","0").focus()});b(document.body).on("click",".x [data-toggle]",function(){var a=b(this),d=b(a.attr("data-toggle"));d.toggle();d.is(":visible")&&!d.find("a,input,button,textarea,select").length?d.attr("tabindex","0").not(":disabled").focus():d.is(":visible")&&
|
|
d.find("a,input,button,textarea,select").length?d.find("a,input,button,textarea,select").not(":disabled").eq(0).focus():a.focus();return!1});b(document.body).on("click",".x [data-show]",function(){b(b(this).attr("data-show")).show().attr("tabindex","0").focus();return!1});b(document.body).on("click",".x [data-hide]",function(){var a=b(this);b(a.attr("data-hide")).hide();a.focus();return!1});b.fn.xeTabbable=function(){b(this).each(function(){var a=b(this);a.find(">.x_nav-tabs>li>a").each(function(a){b(this).attr("data-index",
|
|
a+1)});a.find(">.x_tab-content>.x_tab-pane").each(function(a){b(this).attr("data-index",a+1)})});b('.x .x_tab-content>.x_tab-pane:not(".x_active")').hide()};b(".x .x_tabbable").xeTabbable();b(document.body).on("click",'.x .x_nav-tabs>li>a[href*="#"]',function(){var a=b(this);a.parent("li").addClass("x_active").siblings().removeClass("x_active");a.closest(".x_nav-tabs").next(".x_tab-content").find(">.x_tab-pane").eq(a.attr("data-index")-1).addClass("x_active").show().siblings().removeClass("x_active").hide();
|
|
return!1});var d=b(".x>.body"),a=d.children("#content.content"),g=d.find(">.gnb"),h=g.find(">ul>li");h.find("a").prepend("<i />");h.find(">ul>li.active_").clone().addClass("active").prependTo("#gnbNav");h.find("ul").prev("a").bind("click focus",function(){b(this).parent("li").addClass("open").siblings("li").removeClass("open");d.removeClass("wide");e();return!1});g.find('>a[href="#gnbNav"]').click(function(){b(this).parent(".gnb").toggleClass("open");d.toggleClass("wide");e();return!1});g.prepend('<button type="button" class="close before" />').append('<button type="button" class="close after" />');
|
|
g.find(">.close").focus(function(){d.addClass("wide");e()});b('.x th>input[type="checkbox"]').change(function(){var a=b(this),d=a.data("name");a.closest("table").find("input:checkbox").filter(function(){var a=b(this);return!a.prop("disabled")&&(a.attr("name")==d||a.data("name")==d)}).prop("checked",a.prop("checked")).end().end().trigger("update.checkbox",[d,this.checked])});b(document.body).on("click",".x .x_pagination .x_disabled, .x .x_pagination .x_active",function(){return!1});b(".x .section>h1").append('<button type="button" class="snToggle x_icon-chevron-up">Toggle this section</button>');
|
|
b(".x .section>h1>.snToggle").click(function(){var a=b(this),d=a.closest(".section");d.hasClass("collapse")?(d.removeClass("collapse").children("h1:first").siblings().show(),a.removeClass("x_icon-chevron-down").addClass("x_icon-chevron-up")):(d.addClass("collapse").children("h1:first").siblings().hide(),a.removeClass("x_icon-chevron-up").addClass("x_icon-chevron-down"))});h=b(".x .x_alert");h.prepend('<button type="button" class="x_close">×</button>');h.children(".x_close").click(function(){b(this).parent(".x_alert").hide()});
|
|
b(".x .x_btn").click(function(){if(b(this).hasClass("x_disabled"))return!1});b(".x i").each(function(){var a=b(this);"|"==a.text()&&a.addClass("vr")})});
|
|
jQuery(function(b){b.fn.xeModalWindow=function(){this.not(".xe-modal-window").addClass("xe-modal-window").each(function(){b(b(this).attr("href")).addClass("x").hide()}).click(function(){var e=b(this);"showing"==b(e.attr("href")).data("state")?e.trigger("close.mw"):e.trigger("open.mw");return!1}).bind("open.mw",function(){var e=b(this),d,a;d=b(e.attr("href"));d.parent("body").length||(a=b('<button type="button" class="x_close">×</button>'),a.click(function(){d.data("anchor").trigger("close.mw")}),
|
|
d.find("[data-hide]").click(function(){d.data("anchor").trigger("close.mw")}),b("body").append('<div class="x_modal-backdrop"></div>').append(d),d.prepend(a));d.data("anchor",e);a=b.Event("before-open.mw");e.trigger(a);if(a.isDefaultPrevented())return!1;d=b(e.attr("href"));a=e.data("duration")||"fast";d.data("state","showing");b(document).bind("keydown.mw",function(a){if(27==a.which)return e.trigger("close.mw"),!1});d.fadeIn(a,function(){e.trigger("after-open.mw")}).find("button.x_close:first").focus().end().prev(".x_modal-backdrop").show()}).bind("close.mw",
|
|
function(){var e=b(this),d,a;d=b.Event("before-close.mw");e.trigger(d);if(d.isDefaultPrevented())return!1;d=b(e.attr("href"));a=e.data("duration")||"fast";d.data("state","hiding");d.fadeOut(a,function(){e.trigger("after-close.mw")}).prev(".x_modal-backdrop").hide();e.focus()});b("div.x_modal").addClass("x").hide()};b("a.modalAnchor").xeModalWindow()});
|
|
jQuery(function(b){var e=!1;b.fn.xeContentToggler=function(){this.not(".xe-content-toggler").addClass("xe-content-toggler").each(function(){var d=b(this);$layer=b(d.attr("href"));$layer.hide().not(".xe-toggling-content").addClass("xe-toggling-content").mousedown(function(){e=!0}).focusout(function(){setTimeout(function(){!e&&(!$layer.find(":focus").length&&"showing"==$layer.data("state"))&&d.trigger("close.tc");e=!1},1)})}).click(function(){var d=b(this),a;a=b(d.attr("href"));a.data("anchor",d);"showing"==
|
|
a.data("state")?d.trigger("close.tc"):d.trigger("open.tc");return!1}).bind("open.tc",function(){function d(){a.trigger("after-open.tc")}var a=b(this),g,h,f;g=b(a.attr("href"));h=a.data("effect");f=a.data("duration")||"fast";g.data("state","showing");a.trigger("before-open.tc");e=!1;b(document).unbind("mousedown.tc keydown.tc").bind("mousedown.tc keydown.tc",function(d){if(d&&("keydown"==d.type&&27!=d.which||"mousedown"==d.type&&(d=b(d.target),d.is("html,.tgAnchor,.tgContent")||g.has(d).length)))return!0;
|
|
a.trigger("close.tc");return!1});switch(h){case "slide":g.slideDown(f,d);break;case "slide-h":h=g.css({"overflow-x":"",width:""}).width();g.show().css({"overflow-x":"hidden",width:"0px"}).animate({width:h},f,function(){g.css({"overflow-x":"",width:""});d()});break;case "fade":g.fadeIn(f,d);break;default:g.show(),a.trigger("after-open.tc")}}).bind("close.tc",function(){function d(){a.trigger("after-close.tc")}var a=b(this),g,e,f;b(document).unbind("mousedown.tc keydown.tc");g=b(a.attr("href"));e=a.data("effect");
|
|
f=a.data("duration")||"fast";g.data("state","hiding");a.trigger("before-close.tc");switch(e){case "slide":g.slideUp(f,d);break;case "slide-h":g.animate({width:0},f,function(){g.hide();d()});break;case "fade":g.fadeOut(f,d);break;default:g.hide(),a.trigger("after-close.tc")}});return this};b("a.tgAnchor").xeContentToggler()});
|
|
jQuery(function(b){b.fn.xeModuleFinder=function(){this.not(".xe-module-finder").addClass("xe-module-finder").find("a.tgAnchor.findsite").bind("before-open.tc",function(){var e,d,a;e=b(this);d=b(e.attr("href")).find(">ul");a=e.prev("input:text").val();b.exec_json("admin.getSiteAllList",{domain:a},function(a){var h=a.site_list,f,j;d.empty();e.closest(".modulefinder").find(".moduleList,.moduleIdList").attr("disabled","disabled");if(a.error||!b.isArray(h))e.trigger("close.tc");else{f=0;for(j=h.length;f<
|
|
j;f++)a=b("<li />").appendTo(d),b('<button type="button" />').text(h[f].domain).data("site_srl",h[f].site_srl).appendTo(a)}})}).end().find(".tgContent.suggestion").delegate("button","click",function(){var e,d;e=b(this);d=e.closest(".modulefinder");d.find("a.tgAnchor.findsite").trigger("close.tc");b.exec_json("module.procModuleAdminGetList",{site_srl:e.data("site_srl")},function(a){var g=a.module_list,e;if(!a.error&&g){a=d.find(".moduleList").data("module_list",g).removeAttr("disabled").empty();for(e in g)g.hasOwnProperty(e)&&
|
|
b("<option />").attr("value",e).text(g[e].title).appendTo(a);a.prop("selectedIndex",0).change().focus();a.is(":visible")||a.slideDown(100,function(){d.find(".moduleIdList:not(:visible)").slideDown(100).trigger("show")}).trigger("show")}})}).end().find(".moduleList,.moduleIdList").hide().end().find(".moduleList").change(function(){var e,d,a;e=b(this);d=e.val();a=e.data("module_list");if(a[d]){a=a[d].list;e=e.closest(".modulefinder").find(".moduleIdList").removeAttr("disabled").empty();for(var g in a)a.hasOwnProperty(g)&&
|
|
b("<option />").attr("value",a[g].module_srl).text(a[g].browser_title).appendTo(e);e.prop("selectedIndex",0).change()}});return this};b(".modulefinder").xeModuleFinder()});
|
|
jQuery(function(b){var e=0;_xeModuleSearch=function(){var d=this,a=b(this),g=a.data("multiple");g||(g="");var h="__module_searcher_"+e;e++;b.exec_json("module.getModuleAdminModuleSearcherHtml",{id:h,is_multiple:g},function(e){function g(a,b){var d;a.find("li div").width("");a.css("height","auto");a.css("overflow-y","");a.height()>b&&(d=a.find("li div"),d.width(d.width()-20+"px"),a.css("height",b+"px"),a.css("overflow-y","auto"))}function m(a){var d,e=RegExp(a,"ig"),f=q;n.empty();i=0;for(c=f.length;i<
|
|
c;i++){d=f[i].domain;if(a){if(!d.match(e))continue;d=d.replace(e,function(a){return'<span class="highlight">'+a+"</span>"})}$li=b("<li />").appendTo(n);b("<a>").attr("href","#").html(d).data("site_srl",f[i].site_srl).appendTo($li)}g(n,r-p.parent("div").height())}if(e&&e.html){a.after(e.html).addClass("tgAnchor").attr("href","#"+h).xeContentToggler();var k=a.next(".moduleWindow"),e=k.find(".siteList"),t=k.find(".moduleList"),l=k.find(".instanceList"),n=e.find(">ul"),s=t.find(">ul"),u=l.find(">select"),
|
|
p=k.find("input.siteFinder"),q,r=280;p.keyup(function(){m(p.val())});"undefined"==typeof console&&(console={log:function(){}});a.not(".xe-module-search").addClass("xe-module-search").parent().find("a.moduleTrigger").bind("before-open.tc",function(){var a;a=b(this);n.empty();u.empty();t.hide();l.hide();b.exec_json("admin.getSiteAllList",{domain:""},function(d){var e=d.site_list;d.error||!b.isArray(e)?a.trigger("close.tc"):(q=e,m(p.val()),p.focus())})});k.find(".siteList>ul").delegate("a","click",function(a){var d;
|
|
d=b(this);d.closest(".moduleSearch");s.empty();l.hide();b.exec_json("module.procModuleAdminGetList",{site_srl:d.data("site_srl")},function(a){var e=a.module_list,f;if(!a.error&&e){for(f in e)e.hasOwnProperty(f)&&($li=b("<li />").appendTo(s),b("<a>").attr("href","#").html(e[f].title).data("moduleInstanceList",e[f].list).appendTo($li));k.find(".moduleList").show();g(s,r);n.find("li").removeClass("x_active");d.parent("li").addClass("x_active")}});a.preventDefault()}).end().find(".moduleList>ul").delegate("a",
|
|
"click",function(a){var e,f;e=b(this);if(f=e.data("moduleInstanceList")){d.sSelectedModuleType=e.text();u.empty();for(var h in f)f.hasOwnProperty(h)&&($li=b("<option />").html(f[h].browser_title+" ("+f[h].mid+")").appendTo(u).val(f[h].module_srl).data("mid",f[h].mid).data("module_srl",f[h].module_srl).data("layout_srl",f[h].layout_srl).data("browser_title",f[h].browser_title));l.show();g(u,r);s.find("li").removeClass("x_active");e.parent("li").addClass("x_active");a.preventDefault()}}).end().find(".moduleSearch_ok").click(function(e){var g=
|
|
[];u.find("option:selected").each(function(){g.push({type:d.sSelectedModuleType,module_srl:b(this).data("module_srl"),layout_srl:b(this).data("layout_srl"),browser_title:b(this).data("browser_title"),mid:b(this).data("mid")})});a.trigger("moduleSelect",[g]);b("a.moduleTrigger").trigger("close.tc");e.preventDefault()})}});return this};b.fn.xeModuleSearch=function(){b(this).each(_xeModuleSearch)};b(".moduleTrigger").xeModuleSearch();b.fn.xeModuleSearchHtml=function(){var d=0;b(this).each(function(){var a=
|
|
b(this),e=a.attr("id");e||(e="__module_search_"+d);d++;var e=b('<a class="x_btn moduleTrigger">'+xe.cmd_find+"</a>"),h=b('<input type="text" readonly>');a.after(e).after(" ").after(h).hide();e.xeModuleSearch();e.bind("moduleSelect",function(b,d){h.val(d[0].browser_title+" ("+d[0].mid+")");a.val(d[0].module_srl)});a.val()&&b.exec_json("module.getModuleAdminModuleInfo",{module_srl:a.val()},function(a){a&&a.module_info&&h.val(a.module_info.browser_title+" ("+a.module_info.mid+")")})});return this};
|
|
b(".module_search").xeModuleSearchHtml()});
|
|
jQuery(function(b){function e(a,b){for(var d=0,e=0;a&&a!=b;)d+=a.offsetTop,e+=a.offsetLeft,a=a.offsetParent;return{top:d,left:e}}var d=b('<tr class="placeholder"><td> </td></tr>');b.fn.xeSortableTable=function(){this.not(".xe-sortable-table").addClass("xe-sortable-table").delegate("button.dragBtn","mousedown.st",function(a){var g,h,f,j,m,k,t,l,n,s;if(1==a.which){h=b(this);f=h.closest("tr");j=h.closest("table");s=j.get(0).offsetParent;h=f.height();m=f.width();before_event=b.Event("before-drag.st");
|
|
j.trigger(before_event);if(before_event.isDefaultPrevented())return!1;g=a.pageY;k=e(f.get(0),s);$clone=f.attr("target",!0).clone(!0).appendTo(j);n=(a=j.find("thead th")).length;a.filter("[colspan]").attr("colspan",function(a,b){n+=b-1});d.find("td").attr("colspan",n);t=[];j.find("tbody>tr:not([target],.sticky,:hidden)").each(function(){var a=b(this),d;d=e(this,s);t.push({top:d.top,bottom:d.top+a.height(),$item:a})});$clone.addClass("draggable").css({position:"absolute",opacity:0.6,width:m,height:h,
|
|
left:k.left,top:k.top,zIndex:100});d.css({position:"absolute",opacity:0.6,width:m,height:"10px",left:k.left,top:k.top,backgroundColor:"#bbb",overflow:"hidden",zIndex:99}).appendTo(j);f.css("opacity",0.6);b(document).unbind("mousedown.st mouseup.st").bind("mousemove.st",function(a){var b,e,f;l=null;a=k.top-(g-a.pageY);b=0;for(e=t.length;b<e;b++)f=t[b],b&&f.top>a||b<e-1&&f.bottom<a||(l={element:f.$item},f.top>a-12?(l.state="before",d.css("top",f.top-5)):(l.state="after",d.css("top",f.bottom-5)));$clone.css({top:a})}).bind("mouseup.st",
|
|
function(){var a;b(document).unbind("mousemove.st mouseup.st");f.removeAttr("target").css("opacity","");$clone.remove();d.remove();l&&(a=b(l.element),a[l.state](f),j.trigger("after-drag.st"))})}});return this};b("table.sortable").xeSortableTable();jQuery(function(a){a(".filebox").bind("before-open.mw",function(){function b(f){e.html(f.html);e.find(".select").bind("click",function(){var b=a("input.select_checkbox:checked");0==b.length?(b=a(this).closest("tr").find("img.filebox_item").attr("src"))?
|
|
(d.trigger("filebox.selected",[b]),d.trigger("close.mw")):alert("None selected!"):(d.trigger("filebox.selected",[b]),d.trigger("close.mw"));return!1});e.find(".x_pagination").find("a").filter(function(){return a(this).data("toggle")||a(this).parent().hasClass("x_disabled")||a(this).parent().hasClass("x_active")?!1:!0}).bind("click",function(){var d=a(this).attr("page");a.exec_json("module.getFileBoxListHtml",{page:d},b);return!1});a("#goToFileBox").find("button").bind("click",function(){var d=a(this).prev("input").val();
|
|
a.exec_json("module.getFileBoxListHtml",{page:d},b);return!1});e.closest(".x_modal-body").scrollTop(0)}var d,e,f;d=a(this);f=d.attr("href");e=a(f).find(".filebox_list");a.exec_json("module.getFileBoxListHtml",{page:"1"},b)});var b=a(".x .dsTg .__simple"),d=a(".x .dsTg .__detail");a(".x .dsTg td.title").each(function(){var b=a(this);0==b.find("p.update").length?b.addClass("tg").find(">*:not(:first-child)").hide():b.addClass("up")});var e=a(".x .dsTg td.tg>*:not(:first-child)");b.click(function(){e.slideUp(200);
|
|
d.removeClass("x_active");b.addClass("x_active")});d.click(function(){e.slideDown(200);d.addClass("x_active");b.removeClass("x_active")});var j=a('.vLang[type="hidden"]'),m=a(".lang_code");(j.length||m.length)&&a.exec_json("module.getModuleAdminMultilingualHtml",{},function(b){function d(b,e,f){b=a("#lang_"+b.closest(".x_modal").data("lang-target"));b.width(135).attr("disabled","disabled").val(f).parent(".g11n").addClass("active");b.siblings("#"+b.data("lang-id")).val("$user_lang->"+e);v=!1;b.siblings('[href="#g11n"]').trigger("close.mw")}
|
|
function e(b,g,h){b||(b=1);g||(g="");h||(h="");a.exec_json("module.getModuleAdminLangListHtml",{page:b,search_keyword:g,name:h},function(b){b&&b.html&&(a("#lang_search").html(b.html),a("#lang_search .x_pagination a").click(function(){var b=a(this).data("page"),d=a(this).data("search_keyword");if(b)return e(b,d),!1}),a("#lang_search .x_pagination").submit(function(){var b=a(this).find('[name="page"]').val(),d=a(this).data("search_keyword");if(!b)return!1;e(b,d);return!1}),a("#lang_search .search").submit(function(){var b=
|
|
a(this).find('[name="search_keyword"]').val();e(1,b);return!1}),a("#lang_search #search_cancel").click(function(){e(1,"")}),a("#lang_search").find(".set").append('<i class="x_icon-chevron-down"></i>').click(function(){function b(e){d.next("fieldset").find("textarea").each(function(){var b=a(this),d=e.langs[b.data("lang")];/^\$user_lang->/.test(d)?b.val("").data("value",""):b.val(d).data("value",d)});d.data("is_loaded",!0)}var d=a(this),e=d.data("lang_code");f();d.next("fieldset").is(":visible")?d.children("i").removeClass("x_icon-chevron-up").addClass("x_icon-chevron-down"):
|
|
(d.parent(".item").siblings(".item").find("a > i").removeClass("x_icon-chevron-up").addClass("x_icon-chevron-down").end().children("fieldset").hide(),d.children("i").removeClass("x_icon-chevron-down").addClass("x_icon-chevron-up"));"undefined"==typeof d.data("is_loaded")&&a.exec_json("module.getModuleAdminLangCode",{name:e},b)}),h&&a("#lang_search").find('[href^="#lang-"]').trigger("click"),a("#lang_search").find(".modify").click(function(){a(this).closest("fieldset").addClass("editMode").find("textarea").removeAttr("disabled")}),
|
|
a("#lang_search").find(".cancel").click(function(){a(this).closest("fieldset").removeClass("editMode").find("textarea").attr("disabled","disabled").each(function(){var b=a(this);b.val(b.data("value"))});return!1}),a("#lang_search").find(".item").submit(function(){var b=a(this),d=b.find(".editMode").children("textarea"),e=b.find('[href^="#lang-"]'),f={},g=null;d.each(function(){var b=a(this);f[b.attr("class")]=b.val();b.data("tmp_value",b.val());xe.current_lang==b.attr("class")&&(g=b.val())});f.lang_name=
|
|
e.data("lang_code");a.exec_json("module.procModuleAdminInsertLang",f,function(f){f&&(!f.error&&f.name)&&(d.each(function(){var b=a(this);b.data("value",b.data("tmp_value"))}),e.children("span").html(g),a("#lang_search").find(".cancel").trigger("click"),b.find(".useit").trigger("click"))});return!1}),a("#lang_search").find(".useit").click(function(){var b=a(this),e=b.closest(".item").find('[href^="#lang-"]'),f=e.data("lang_code"),e=e.children("span").text();d(b,f,e)}))})}function f(){if(r.is(":visible")&&
|
|
r.find(".editMode").length){var a=r.find("form.item");confirm(xe.msg_confirm_save_and_use_multilingual)?a.find(".save").trigger("click").end().find("textarea").attr("disabled","disabled"):a.find(".cancel").trigger("click")}return!0}a(".x #content").append(b.html);var g=0;j.each(function(){var b=a(this);b.removeClass("vLang").addClass("lang_code");b.parent().find(".editUserLang").remove()});m=a(".lang_code");m.each(function(){var b=a(this),d=b.attr("id");d||(d="__lang_code_"+g,g++,b.attr("id",d));
|
|
var e="TEXTAREA"==this.tagName||b.next("textarea.vLang").length?a('<textarea id="lang_'+d+'" class="displayInput" style="width:179px">').data("lang-id",d):a('<input type="text" id="lang_'+d+'" class="displayInput" style="width:179px">').data("lang-id",d),f=a('<button type="button" class="x_add-on remover" title="'+xe.cmd_remove_multilingual_text+'"><i class="x_icon-remove"></i>'+xe.cmd_remove_multilingual_text+"</button>").data("lang-target",d),d=a('<a href="#g11n" class="x_add-on modalAnchor" title="'+
|
|
xe.cmd_set_multilingual_text+'"><i class="x_icon-globe"></i>'+xe.cmd_set_multilingual_text+"</a>").data("lang-target",d);b.parent().addClass("g11n").addClass("x_input-append");b.after(e,f,d);b.parent().find(".vLang").remove();b.hide();d.attr("href","#g11n").xeModalWindow();var h=b;e.bind("change, keyup",function(){b=a(this);b.closest(".g11n").hasClass("active")||h.val(b.val())});e.val(h.val());/^\$user_lang->/.test(e.val())&&a.exec_json("module.getModuleAdminLangCode",{name:e.val().replace("$user_lang->",
|
|
"")},function(a){a&&a.langs&&(e.closest(".g11n").addClass("active"),e.val(a.langs[xe.current_lang]).attr("disabled","disabled").width(135))})});var b=a(".x .g11n"),h=b.children(".modalAnchor"),p=a(".x #g11n"),q=p.find("#lang_create"),r=p.find("#lang_search"),v=!1;p.find(".x_tabbable").xeTabbable();q.find(".editMode textarea").change(function(){v=!0});q.submit(function(){var b=a(this),e={},f=null;b.find(".editMode").children("textarea").each(function(){var b=a(this);e[b.attr("class")]=b.val();xe.current_lang==
|
|
b.attr("class")&&(f=b.val())});if(!f)return alert(xe.msg_empty_multilingual),!1;a.exec_json("module.procModuleAdminInsertLang",e,function(a){a&&(!a.error&&a.name)&&d(b,a.name,f)});return!1});b.children(".remover").click(function(){var b=a(this);a("#lang_"+b.data("lang-target")).val("").removeAttr("disabled").width(179).parent(".g11n").removeClass("active");b.siblings(".lang_code").val("")});h.bind("before-close.mw",function(){q.is(":visible")&&v&&confirm(xe.msg_confirm_save_and_use_multilingual)&&
|
|
q.find(".save-useit").trigger("click");if(!f())return!1;r.find(".item > fieldset").hide().prev("a").children("i").removeClass("x_icon-chevrom-up").addClass("x_icon-chevron-down");p.find('[href="#lang_create"]').trigger("click");q.find(".editMode").children("textarea").val("");v=!1});h.bind("open.mw",function(){var b=a(this),d=b.siblings(".displayInput");b.closest(".g11n").hasClass("active")?(e(1,"",d.prev(".lang_code").val().replace("$user_lang->","")),a(b.attr("href")).find('[href="#lang_search"]').trigger("click")):
|
|
e();a(b.attr("href")).data("lang-target",b.data("lang-target"))})})})});
|