From f2f9fd36345a75425a0bd67587555b6ab876aaa6 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Sat, 6 May 2017 15:52:18 +0300 Subject: [PATCH] 18.47 [patch #748 - complete support for proxy-passed configurations] --- CHANGELOG.md | 7 +++--- authentic-lib.pm | 40 ++++++++++++++++-------------- unauthenticated/js/content.js | 5 ++-- unauthenticated/js/content.min.js | 2 +- unauthenticated/js/init.js | 4 ++- unauthenticated/js/init.min.js | 2 +- unauthenticated/js/postinit.js | 14 +++++++++-- unauthenticated/js/postinit.min.js | 2 +- version | 2 +- 9 files changed, 47 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16400fd7e..bb16fe9fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ ## Changelog -#### Version 18.47-patch14 (May 6, 2017) -* Added no animations for page transitions, resulting in overall speed increase -* Added support for choosing/preserving encoding for edited files in File Manager [#52020](https://virtualmin.com/comment/775985#comment-775985) +#### Version 18.47-patch15 (May 6, 2017) +* Added enhancements to page transitions, resulting in overall speed increase +* Added complete support for proxy-passed configurations [#748](https://github.com/qooob/authentic-theme/issues/748) +* Added support for encodings control for edited files in File Manager [#52020](https://virtualmin.com/comment/775985#comment-775985) * Added ability to force update the theme from settings [#741](https://github.com/qooob/authentic-theme/issues/741) * Added bigger checkboxes for tables [#743](https://github.com/qooob/authentic-theme/issues/743) * Added alternative method for calling context menu in File Manager [#739](https://github.com/qooob/authentic-theme/issues/739) diff --git a/authentic-lib.pm b/authentic-lib.pm index 90d0d3721..9cec4c5b8 100644 --- a/authentic-lib.pm +++ b/authentic-lib.pm @@ -661,14 +661,14 @@ sub print_left_menu my $icon; if ( $item->{'type'} eq 'item' - && $link ne "/virtual-server/edit_lang.cgi" - && $link ne "/virtual-server/edit_lang.cgi" - && $link ne "/virtual-server/history.cgi" ) + && $link ne add_webprefix("/virtual-server/edit_lang.cgi") + && $link ne add_webprefix("/virtual-server/edit_lang.cgi") + && $link ne add_webprefix("/virtual-server/history.cgi") ) { # Define an icon for the link/accordion - if ( $link eq "/virtual-server/index.cgi" - || $link eq "/server-manager/index.cgi" ) + if ( $link eq add_webprefix("/virtual-server/index.cgi") + || $link eq add_webprefix("/server-manager/index.cgi") ) { $icon = ''; } @@ -677,24 +677,24 @@ sub print_left_menu { $icon = ''; } - elsif ( $link eq "/mailbox/list_folders.cgi" - || $link eq "/mailbox/list_ifolders.cgi" ) + elsif ( $link eq add_webprefix("/mailbox/list_folders.cgi") + || $link eq add_webprefix("/mailbox/list_ifolders.cgi") ) { $icon = ''; } - elsif ( $link eq "/mailbox/list_addresses.cgi" ) { + elsif ( $link eq add_webprefix("/mailbox/list_addresses.cgi") ) { $icon = ''; } - elsif ( $link eq "/filter/edit_forward.cgi" ) { + elsif ( $link eq add_webprefix("/filter/edit_forward.cgi") ) { $icon = ''; } - elsif ( $link eq "/filter/edit_auto.cgi" ) { + elsif ( $link eq add_webprefix("/filter/edit_auto.cgi") ) { $icon = ''; } - elsif ( $link eq "/filter/" ) { + elsif ( $link eq add_webprefix("/filter/") ) { $icon = ''; } - elsif ( $link eq "/mailbox/edit_sig.cgi" ) { + elsif ( $link eq add_webprefix("/mailbox/edit_sig.cgi") ) { $icon = ''; } elsif ( index( $link, 'mailbox/index.cgi?id=' ) > -1 ) { @@ -2854,17 +2854,14 @@ sub _settings ? ' ' : '' ) @@ -3003,7 +3000,12 @@ sub get_xhr_request switch_to_remote_user(); my $data; use Encode qw( encode decode ); - eval { $data = Encode::encode( 'utf-8', Encode::decode( $in{'xhr-encoding_convert_name'}, read_file_contents( $in{'xhr-encoding_convert_file'} ) ) ) }; + eval { + $data = Encode::encode( 'utf-8', + Encode::decode( $in{'xhr-encoding_convert_name'}, + read_file_contents( $in{'xhr-encoding_convert_file'} ) + ) ); + }; print $data; } elsif ( $in{'xhr-get_nice_size'} eq '1' ) { diff --git a/unauthenticated/js/content.js b/unauthenticated/js/content.js index cdc8e09de..9c2e1540a 100644 --- a/unauthenticated/js/content.js +++ b/unauthenticated/js/content.js @@ -1660,6 +1660,7 @@ f__lnk_t_btn(["/sysinfo.cgi", "/virtual-server/edit_newchangelog.cgi", "/server- f__lnk_t_btn(["/virtual-server/", "/virtual-server/index.cgi", "/virtual-server/edit_plan.cgi"], "form table tbody td", 'a[href*="list_users.cgi?"], a[href*="list_aliases.cgi?"]', "btn btn-transparent btn-transparent-link-force btn-borderless btn-xxs vertical-align-top margined-top-2", 0, "(~)", " ~ ", "(~..)"); f__lnk_t_btn(["/quota/", "/quota/index.cgi"], ".table tbody td.td_tag", 'a[href*="activate.cgi"][href*="&active=3"]', "btn btn-warning btn-xxs vertical-align-top margined-top-2", "fa-ban"); f__lnk_t_btn(["/quota/", "/quota/index.cgi"], ".table tbody td.td_tag", 'a[href*="activate.cgi"][href*="&active=0"]', "btn btn-success btn-xxs vertical-align-top margined-top-2", "fa-check-circle-o"); +f__lnk_t_btn(["/virtualmin-google-analytics/", "/virtualmin-google-analytics/index.cgi"], ".table tbody td.td_tag", 'a[href*="edit.cgi"]', "btn btn-warning btn-xxs vertical-align-top margined-top-2", "fa-pencil-square"); if ($('body[class*="status"]').length && $__source_file == "edit_mon.cgi" || $current_page_full == $_____link_full + "/virtual-server/list_sched.cgi" || $current_page_full == $_____link_full + "/ldap-server/edit_schema.cgi" || $current_page_full == $_____link_full + "/software/list_pack.cgi" || $current_page_full == $_____link_full + "/mailboxes/view_mail.cgi" || $current_page_full == $_____link_full + "/mailbox/view_mail.cgi" || $current_page_full == $_____link_full + "/mailbox/list_folders.cgi" || $current_page_full == $_____link_full + "/phpini/" || $current_page_full == $_____link_full + "/phpini/index.cgi" || $current_page_full == $_____link_full + "/fsdump/" || $current_page_full == $_____link_full + "/fsdump/index.cgi" || $current_page_full == $_____link_full + "/fdisk/" || $current_page_full == $_____link_full + "/fdisk/index.cgi" || $current_page_full == $_____link_full + "/virtualmin-awstats/" || $current_page_full == $_____link_full + "/virtualmin-awstats/index.cgi" || $current_page_full == $_____link_full + "/syslog/" || $current_page_full == $_____link_full + "/syslog/index.cgi") { $.each($('tr td:last-child:contains("|")'), function() { if ($current_page_full == $_____link_full + "/virtual-server/list_sched.cgi") { @@ -1821,7 +1822,7 @@ $("table thead th:not(.table-title)").each(function() { }); if ($("body").attr("class") && $("body").attr("class").indexOf($g__o__f_m) > -1) { !$("body").hasClass("file-manager") && $("body").addClass("file-manager"); - $("#headln2l").prepend("') + $("#headln2l").prepend("') } if (settings_right_iconize_header_links) { $.each($(".panel-heading > table.header > tbody > tr > td > a"), function() { @@ -3173,7 +3174,7 @@ if ($current_page_full == $_____link_full + "/mysql/exec_form.cgi" || $current_p $('input[name="clear"]').attr("style", "margin-bottom: 3px !important;"); $('select[name="old"]').attr("style", "margin-bottom: 3px !important; margin-right: 0 !important;") } -if ($__source_file == "config.cgi" && ($__source_query == "mysql" || $__source_query == "postgresql")) { +if (($__source_file == "config.cgi" || $__source_file == "uconfig.cgi") && ($__source_query == "mysql" || $__source_query == "postgresql")) { $('input[name="style"]').parents("td.col_value").parent("tr").after(' ' + lang("theme_xhred_xsql_fit_content_screen_height") + ' "); $('input[name="config_portable_module_xsql_fit_content_screen_height"]').on("change", function() { var b = $(this).attr("name"), diff --git a/unauthenticated/js/content.min.js b/unauthenticated/js/content.min.js index a0607f84f..bcd41044d 100644 --- a/unauthenticated/js/content.min.js +++ b/unauthenticated/js/content.min.js @@ -3,4 +3,4 @@ * Copyright 2014-2017 Ilia Rostovtsev * Licensed under MIT (https://github.com/qooob/authentic-theme/blob/master/LICENSE) */ -;charset_warning();typeof t__wi_p.t___p__xhr_r=="undefined"?t__wi_p.t___p__xhr_r=0:false;$(window).ajaxStart(function(){t__wi_p.t___p__xhr_r=1;if(t__wi_p.t___p__xhr_l===0){if(settings_loader_top&&t__wi_p.$___ajax_requested_url.indexOf("index.cgi/?xhr-info=1")===-1&&($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)===-1||t__wi_p.$___ajax_requested_url.indexOf("help.cgi")>-1||t__wi_p.$___ajax_requested_url.indexOf("edit_file.cgi")>-1)){t__wi_p.NProgress.remove();t__wi_p.NProgress.start()}}}).ajaxStop(function(){if(t__wi_p.t___p__xhr_l===0){if(settings_loader_top&&__num()&&!t__wi_p.$____loader_block__){t__wi_p.NProgress.done()}if(t__wi_p.t___p__ll===1){t__wi_p.__lle()}}t__wi_p.t___p__xhr_r=0});$("body").attr("style",$("body").data("style"));function _f__table(){var a=parseInt($(".tab-pane.active").attr("id").replace(/^\D+/g,""));return window["_f__table"+a]}function __r____changed(){if($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1){$(".total_size_data").parent("span").addClass("hidden");var a=_f__table().dataTable().$("tr.hl-aw",{filter:"applied"}).length;if(a){__f___ub()}else{__f___lb()}$(".total_selected").html(a==1?lang("theme_xhred_filemanager_selected_entry").replace("%value","1"):lang("theme_xhred_filemanager_selected_entries").replace("%value",""+a+""))}}function __init_ck_(a){CKEDITOR_BASEPATH="/unauthenticated/js/ckeditor/";$.getScript(""+$_____link_full+"/unauthenticated/js/ckeditor/ckeditor.js",function(f,c,d){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){CKEDITOR.tools.enableHtml5Elements(document)}function g(){if(CKEDITOR.revision==("%REV%")){return true}return !!CKEDITOR.plugins.get("wysiwygarea")}CKEDITOR.config.height=$(window).height()/a[1];CKEDITOR.config.width="auto";CKEDITOR.config.removePlugins="save, about";var k=((__isNR||__isNM)?1:0);if(k){CKEDITOR.config.contentsCss=($_____link_full+"/unauthenticated/css/palettes/nightrider_ckeditor_content."+t__wi_p.$load____ext+".css?"+$g__t__ver_str);if(!$('html head link[href*="css/nightrider_ckeditor."]').length){$("html head").append('')}}var h=g();var j=CKEDITOR.document.getById(a[0]);if(h){var b=$("body").data("language");CKEDITOR.replace(a[0],{language:(b=="zh"?"zh-cn":b)})}else{j.setAttribute("contenteditable","true");CKEDITOR.inline(a[0])}if(a[2]===true){for(var e in CKEDITOR.instances){CKEDITOR.instances[e].on("change",function(i){i.removeListener();$("body").attr("data-unload-warning","1")})}}if(a[3]==="edit_web"){setTimeout(function(){$("hr + b").removeClass("hidden");$(".__tmp__spinner").remove()},100)}})}$.each($('tr td:last-child a:contains("..")'),function(){if($current_page_full==$_____link_full+"/virtual-server/list_databases.cgi"){$(this).html($(this).text().replace(/\.\.$/," ")).addClass("ui_link_replaced btn btn-info btn-xxs").removeClass("ui_link")}});function __init_dt_(f,e,a,d){typeof e=="undefined"?e=false:false;typeof a=="undefined"?a=false:false;typeof d=="undefined"?d=false:false;if(is__mf("virtual-server","index.cgi")){e=true}$.fn.dataTableExt.sErrMode="throw";function b(g){g.DataTable({order:[],aaSorting:[],bDestroy:true,bPaginate:false,columnDefs:[d],bInfo:false,bStateSave:e,destroy:true,dom:(a?"Rlfrtip":"f"),oLanguage:{sEmptyTable:lang("theme_xhred_datatable_semptytable"),sInfo:lang("theme_xhred_datatable_sinfo"),sInfoEmpty:lang("theme_xhred_datatable_sinfoempty"),sLengthMenu:lang("theme_xhred_datatable_slengthmenu"),sLoadingRecords:lang("theme_xhred_datatable_sloadingrecords"),sProcessing:lang("theme_xhred_datatable_sprocessing"),sSearch:" ",sZeroRecords:lang("theme_xhred_datatable_szerorecords")},initComplete:function(h){$(".dataTables_filter").find('input[type="search"]').attr("placeholder",lang("theme_xhred_datatable_filter"))}})}if(is__mf("virtual-server","list_users.cgi")){var c=$(".table thead tr th").filter(function(){return $(this).text().match(/Last login|Dernière Connexion|Siste innlogging|Letzer Login|Laatste login/)}).index();if(c>-1){$.each(f.find("tbody tr td:nth-child("+(c+1)+")"),function(h,i){var g=$(this).text();if(/Never|Jamais|Aldri|Niemals|Nigdy|Nooit/i.test(g)){g=0}$(this).attr("data-sort",g)}).promise().done(function(){b(f)})}else{b(f)}}else{b(f)}}function f__gc(){return t__wi_p.$("#favorites-menu .favorites-menu-content li:not(.exclude)").length}function f__g(){var b=[];$.each(t__wi_p.$("#favorites-menu .favorites-menu-content li:not(.exclude) a"),function(){var e=$(this).text(),f=$(this).attr("href"),a=$(this).find(".wbm-sm").attr("data-product");favorite={};favorite.link=f;favorite.title=e.trim();favorite.icon=(a=="virtualmin"?(a+""):a);b.push(favorite)});return b}function f__u(){$.ajax({type:"POST",url:$_____link_full+"/settings-favorites_save.cgi",data:{favorites:('{"favorites":'+JSON.stringify(f__g(),null,4).replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f")+"}")},success:function(b){t__wi_p.fetch_right_pane_favorites()},error:function(b){}})}function f__a(d,f,e){if(f__gc()===0){t__wi_p.$("#favorites-menu .favorites-menu-content li.favorites-no-message").addClass("hidden");t__wi_p.$("#favorites-menu .favorites-menu-content .favorites-title sup a").removeClass("hidden")}t__wi_p.$("#favorites-menu .favorites-menu-content li.favorites-title").after(' ')}function f__us(){if(f__gc()===0){t__wi_p.$("#favorites-menu .favorites-menu-content li.favorites-no-message").removeClass("hidden");t__wi_p.$("#favorites-menu .favorites-menu-content .favorites-title sup a").addClass("hidden")}}function f__r(b){t__wi_p.$("#favorites-menu .favorites-menu-content").find('a[href="'+b+'"]').parent("li").effect("drop",{},300,function(){$(this).remove();$("#headln2c > .favorites").addClass("fa-star-o").removeClass("fa-star text-warning");f__us();f__u()})}function f__dt(){$(f__g()).each(function(){if($(this)[0]){var b=URI(t___wi.location).resource();if($(this)[0].link==b||$(this)[0].link+"index.cgi"==b){setTimeout(function(){$("#headln2c > .favorites").addClass("fa-star").removeClass("fa-star-o")},100);return false}else{setTimeout(function(){$("#headln2c > .favorites").removeClass("fa-star").addClass("fa-star-o")},100)}}})}f__dt();if(access_level()==0&&$g__v__nav){$("#headln2c").prepend(' ');$("body").append('')}$("body").on("click","#headln2c > .favorites",function(m){m.preventDefault();var k=URI(t___wi.location).resource();if($(this).hasClass("fa-star-o")){$(this).removeClass("fa-star-o").addClass("fa-star text-warning");var j=$("#headln2c > font").text(),n=t__wi_p.$(".has-sub.active").text().trim(),e=t__wi_p.$(".sub_active").text().trim(),i="",l="";if(product_name()==="Virtualmin"||product_name()==="Cloudmin"){i=t__wi_p.$(".ui_select option:selected").text()}if($('body[class^="'+$g__o__f_m+'"]').length){l=URI.parseQuery(URI(t___wi.location).query())["path"];if(!l){l="[/]"}else{l="["+l+"]"}}f__a(k,(((i.length?(i+" - "):"")+(n.length?(n+"/"):"")+(e.length?(e+": "):""))+j.trim()+(l.length?(" "+l):"")),(product_name()==="Virtualmin"?"virtualmin":product_name()==="Cloudmin"?"cloudmin":"webmin"));f__u()}else{$(this).addClass("fa-star-o").removeClass("fa-star text-warning");f__r(k)}});if(typeof jQuery.ui=="object"){t__wi_p.$("#favorites-menu > div > nav > ul").sortable({revert:true,delay:100,update:function(){f__u()}})}t__wi_p.$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").removeClass("hidden")}).on("mouseleave","li:not(.exclude) span.f__c, li:not(.exclude) span.f__c small",function(){$(this).find("small").addClass("hidden")});t__wi_p.$("#favorites-menu .favorites-menu-content").on("mouseover","li:not(.exclude) small",function(){$(this).find(".fa-times").removeClass("fa-times").addClass("fa-times-circle");$(this).animate({"font-size":"0.7em","margin-top":"-2px","margin-left":"-1px"},160)}).on("mouseleave","li:not(.exclude) small",function(){$(this).find(".fa-times-circle").removeClass("fa-times-circle").addClass("fa-times");$(this).animate({"font-size":"0.6em","margin-top":"-1px","margin-left":"0"},80)});t__wi_p.$("#favorites-menu .favorites-menu-content").on("click","li:not(.exclude) small .fa-times-circle",function(b){b.preventDefault();b.stopPropagation();f__r($(this).parents("a").attr("href"))});$(document).on("keydown",function(b){if(t__wi_p.$(".favorites-menu-outer").css("left")=="0px"&&b.keyCode==27){t__wi_p.$(".favorites-menu-outer").removeClass("hover")}});f__us();function l__res_fi(){$(".btn-filter-top-right .dataTable-mirror").val("").trigger("keyup");$(".btn-filter-top-right input").is(":visible")&&$(".btn-filter-top-right input").trigger("blur")}function l__ck_fi(){if(($(".nav.nav-tabs").length&&$(".active .dataTables_filter").length)||(!$(".nav.nav-tabs").length&&$(".dataTables_filter").length)){$(".btn-filter-top-right").show()}else{$(".btn-filter-top-right").hide()}}function f__mgk_sp(n,k,j,l){var e=(((n.attr("onclick")&&n.attr("onclick").indexOf("blank")!==-1)||(n.parents("form").attr("target")&&n.parents("form").attr("target").indexOf("blank")!==-1))?true:false),b=n.hasClass("heighter-28"),c=n.css("height")=="28px",g=n.hasClass("btn-lg"),f=is__m("server-manager")?2:0,m=n.find(".fa").hasClass("fa-1_25x"),d=n.find(".fa"),h=((typeof k=="undefined"||k==false)?false:k),i='',a='';!e&&n.addClass("disabled");if(d.length&&!e){if(n.hasClass("btn-default")){d.addClass("invisible").after(a)}else{d.addClass("invisible").after(i)}}typeof j=="undefind"?j=false:false;typeof l=="undefind"?l=false:false;if(h[3]||j){setTimeout(function(){n.removeClass("disabled");d.removeClass("invisible");n.find(".cspinner_container").remove()},(j?j:h[3]))}if(l){setTimeout(function(){__lre()},2)}}function f__mgk_fi(){if($(".dataTables_filter").length){setTimeout(function(){$("#headln2r .btn-group a").addClass("pull-left").attr("style","");$("#headln2r .btn-group").prepend(' ');if($(".nav.nav-tabs").length){$("body").on("shown.bs.tab",'a[data-toggle="tab"]',function(b){var c=$(b.target).parent(".active");if(c.data("filter-value")){$(".dataTable-mirror").val(c.data("filter-value")).trigger("keyup")}else{$(".dataTable-mirror").val("").trigger("keyup")}l__ck_fi()})}var a=$(".dataTables_filter");a.hide();$(".btn-filter-top-right").click(function(b){!$(b.target).is("input")&&$(this).find("label").slideToggle(300,function(){$(this).find("input").focus()})});$(".dataTable-mirror").keyup(function(b){if($(".nav.nav-tabs").length){$(".nav-tabs li.active").data("filter-value",$(this).val());$(".active .dataTables_filter input").val($(this).val()).trigger("keyup")}else{$(".dataTables_filter input").val($(this).val()).trigger("keyup")}if($.trim($(this).val()).length>0){$(".btn-filter-top-right i").addClass("text-danger")}else{$(".btn-filter-top-right i").removeClass("text-danger")}});$(".btn-filter-top-right input").blur(function(b){$(this).parent("label").slideToggle(0)});l__ck_fi()},0)}}function datePicker(p,n,o,m){var d=$(n).find("option:eq(0)").val()==1?0:1;var e=$(m),l=parseInt($(p).val()),q=($(n).val()?parseInt($(n).val())+d:false),i=$(o).val();e.datepicker({format:" yyyy-m-d",language:$("body").data("language"),autoclose:true}).on("hide",function(a){var b=e.val()?e.val().split("-"):false;e.val("");if(b){$(p).val(parseInt(b[2]));$(n).val(parseInt(b[1])-d);$(o).val(parseInt(b[0]))}}).focus()}var $product_name=t__wi_p.$("#wrapper").data("product");$('body:not(".mobile-menu-toggler")').on("click",function(b){t__wi_p.hide_mobile_menu();if(t__wi_p.$(".autocomplete-suggestions").is(":visible")){}});if(t__wi_p.$(".switch-toggle").find('label[for="open_thirdlane"]').length){t__wi_p.$('.switch-toggle input:not([id="open_webmin"])').each(function(){$(this).removeAttr("checked")}).promise().done(function(){t__wi_p.$("#open_webmin").prop("checked",true)})}if(__num()){if($current_directory==$_____link+"init/"){$("table.table tbody tr").addClass("ui_checked_columns")}function __mr(){var a=($("body").attr("class")&&$("body").attr("class").indexOf($g__o__f_m)>-1);if(a){return}$.each($(".ui_checked_columns"),function(b,e){if($(e).find("a[href]")&&!$("body").hasClass("servers")&&!$(this).hasClass("selectable")){$(e).addClass("cursor-pointer").find("td").addClass("cursor-pointer").find("label").addClass("cursor-pointer").find("tt").addClass("cursor-pointer")}$(e).find("td:not(.selectable)").click(function(d){if($(d.target).is(".awobject, .iawobject, .lawobject, .awcheckbox, .awradio")){return}if($(e).find("a[href]")&&!$("body").hasClass("servers")){var c=$(e).find("a[href]")[0],h=$(this).parents("tr.ui_checked_columns"),f=$(d.target).find('input[type="checkbox"]:not(":disabled")'),g=f.length;g&&f.trigger("click");if(c&&($(this).find("a").attr("href")===$(c).attr("href")||$(this).find("a").attr("href")===undefined)&&!$(d.target).is("select, input, .awobject, .iawobject, .lawobject, .awcheckbox, .awradio")&&($(this).parent("tr").find('a[href*="download.cgi"]').length===0)){d.preventDefault();if($(c).attr("target")){!g&&window.open($(c).attr("href"),$(c).attr("target"))}else{window.location.href=$(c).attr("href")}}}});$(e).find("td").contextmenu(function(c){var d=$(this).parents("tr.ui_checked_columns");c.preventDefault();if(($(this).parents("tr").find('input[type="checkbox"]:first').length&&$(this).parents("tr").find('input[type="checkbox"][disabled]').length===0)||($(this).parents("tr").find('input[type="checkbox"][disabled]').length&&$(this).parents("tr").find("input").length>1)){if(d.find('input[type="checkbox"]:first').is(":checked")){d.removeClass("hl-aw");__r____changed()}else{d.addClass("hl-aw");__r____changed()}d.find('input[type="checkbox"]:first').trigger("click")}})})}__mr();function __mcr(){$.each($('input[type="radio"]:not(.iawobject), input[type="checkbox"]:not(.iawobject)'),function(){if($(this)[0]){$___text=$(this)[0].nextSibling}var e=$(this).next('input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea'),k=($___text&&$___text.nodeValue&&$.trim($___text.nodeValue).length>1),d=(k?$___text.nodeValue:" "),j=$(this).attr("type").toLowerCase();if($(this).next("label").length===0&&e.length===0&&k){$(this).addClass("iawobject");var g=$(this).attr("id")?'for="'+$(this).attr("id")+'"':false;if(g===false&&$(this).attr("name")&&$(this).val()){var h="__replaced_"+$(this).attr("name")+"_"+$(this).val()+"";var g='for="'+h+'"';$(this).attr("id",h)}$($___text).wrap('