(function(){this.init_interface=function(){var t;return parent&&parent.document.location.href!==document.location.href&&$("body#dialog_container.dialog").addClass("iframed"),$("input:submit:not(.button)").addClass("button"),$("textarea.wymeditor").each(function(){var t,e,i,n;if(n=$(this),null!=(t=WYMeditor.INSTANCES[$((n.next(".wym_box").find("iframe").attr("id")||"").split("_")).last().get(0)])&&(null!=(e=n.parent().next())&&0",buttonPrevHTML:"up",listTag:t.get(0).tagName.toLowerCase(),itemTag:t.children(":first").get(0).tagName.toLowerCase()}),$("#current_locale li a").click(function(t){return $("#current_locale li a span").each(function(){return $(this).css("display","none"===$(this).css("display")?"":"none")}),$("#other_locales").animate({opacity:"toggle",height:"toggle"},250),$("html,body").animate({scrollTop:$("#other_locales").parent().offset().top},250),t.preventDefault()}),$("#existing_image img").load(function(){var t;if(0<(t=$("#existing_image").height()-$("form.edit_image").height()+8))return $("form.edit_image .form-actions").css({"margin-top":t})}),$(".form-actions .form-actions-left input:submit#submit_button").click(function(){return $("").appendTo($(this).parent())}),$(".form-actions.form-actions-dialog .form-actions-left a.close_dialog").click(function(t){var e;return e=$(".ui-dialog-titlebar-close"),parent&&(e=parent.$(".ui-dialog-titlebar-close")),e.trigger("click"),t.preventDefault()}),$("a.suppress").on("click",function(t){return t.preventDefault()})}}).call(this);