aboutsummaryrefslogtreecommitdiffstats
path: root/installer/6/it/content/main.js
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-08-25 09:34:45 +0200
committerPapoteur <papoteur@mageia.org>2023-08-25 09:34:45 +0200
commit29d2fe96063f0d0007c949ce43897632ac88b360 (patch)
treee6988d4856a6cf32042c659211c0bdd8ae2454eb /installer/6/it/content/main.js
parent2ae4a97a0028467efa1bdc110220d49af6c4cec7 (diff)
downloaddoc-29d2fe96063f0d0007c949ce43897632ac88b360.tar
doc-29d2fe96063f0d0007c949ce43897632ac88b360.tar.gz
doc-29d2fe96063f0d0007c949ce43897632ac88b360.tar.bz2
doc-29d2fe96063f0d0007c949ce43897632ac88b360.tar.xz
doc-29d2fe96063f0d0007c949ce43897632ac88b360.zip
Adding or refreshing mcc in cs
Diffstat (limited to 'installer/6/it/content/main.js')
0 files changed, 0 insertions, 0 deletions
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
/**
 * Miscellaneous js functions for WebHelp
 * Kasun Gajasinghe, http://kasunbg.blogspot.com
 * David Cramer, http://www.thingbag.net
 *
 */

$(document).ready(function() {  
  //  $("#showHideHighlight").button(); //add jquery button styling to 'Go' button
    //Generate tabs in nav-pane with JQuery
    $(function() {
            $("#tabs").tabs({
                cookie: {
                    // store cookie for 2 days.
                    expires: 2
                }
            });
        });

    //Generate the tree
     $("#ulTreeDiv").attr("style","");
    $("#tree").treeview({
        collapsed: true,
        animated: "medium",
        control: "#sidetreecontrol",
        persist: "cookie"
    });

    //after toc fully styled, display it. Until loading, a 'loading' image will be displayed
    $("#tocLoading").attr("style","display:none;");
//    $("#ulTreeDiv").attr("style","display:block;");

    //.searchButton is the css class applied to 'Go' button 
    $(function() {
		$("button", ".searchButton").button();

		$("button", ".searchButton").click(function() { return false; });
	});

    //'ui-tabs-1' is the cookie name which is used for the persistence of the tabs.(Content/Search tab)
    if ($.cookie('ui-tabs-1') === '1') {    //search tab is visible 
        if ($.cookie('textToSearch') != undefined && $.cookie('textToSearch').length > 0) {
            document.getElementById('textToSearch').value = $.cookie('textToSearch');
            Verifie('diaSearch_Form');
            searchHighlight($.cookie('textToSearch'));
            $("#showHideHighlight").css("display","block");
        }
    }

    syncToc(); //Synchronize the toc tree with the content pane, when loading the page.
    //$("#doSearch").button(); //add jquery button styling to 'Go' button
});