{"size": 3741, "ext": "js", "max_stars_repo_path": "ole-app/olefs/src/main/webapp/ole/describe/scripts/analytics.js", "max_stars_repo_name": "VU-libtech/OLE-INST", "max_stars_repo_stars_event_min_datetime": "2017-01-26T03:50:56.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-26T03:50:56.000Z", "max_issues_repo_path": "ole-app/olefs/src/main/webapp/ole/describe/scripts/analytics.js", "max_issues_repo_name": "VU-libtech/OLE-INST", "max_issues_repo_issues_event_min_datetime": "2020-11-16T20:28:08.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-22T23:41:19.000Z", "max_forks_repo_path": "ole-app/olefs/src/main/webapp/ole/describe/scripts/analytics.js", "max_forks_repo_name": "VU-libtech/OLE-INST", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 31.9743589744, "max_line_length": 81, "alphanum_fraction": 0.4873028602}
/**
 * Created with IntelliJ IDEA.
 * User: rajeshbabuk
 * Date: 3/3/14
 * Time: 8:13 PM
 * To change this template use File | Settings | File Templates.
 */

jq(document).ready(function () {
    window.setTimeout(function () {
        jq("a.analytics ins.jstree-icon").removeClass("jstree-icon");
        jq("a.boundWithbibs ins.jstree-icon").removeClass("jstree-icon");
        jq("#SeriesTree_expandAll").focus().click();
        jq("#AnalyticTree_expandAll").focus().click();

        jq("#AnalyticTree a").each(function () {
            var id1 = jq(this).attr("class");

            if (id1.indexOf("wio") !=-1) {
                var id2 = jq(this).next().attr("id");
                if (id2 == null) {
                    id2 = jq(this).next().next().attr("id")
                }
                if (id2 != null) {
                    var id3 = jq("#" + id2 + " .uif-checkboxControl").attr("id");
                    jq("#" + id3).removeAttr("disabled");
                }

            }
        });

    }, 200);
});

function analyticsSummaryTree() {

    window.setTimeout(function () {
        jq("a.analytics ins.jstree-icon").removeClass("jstree-icon");
        jq("a.boundWithbibs ins.jstree-icon").removeClass("jstree-icon");
        jq("#SeriesTree_expandAll").focus().click();
        jq("#AnalyticTree_expandAll").focus().click();

        jq("#AnalyticTree a").each(function () {
            var id1 = jq(this).attr("class");

            if (id1.indexOf("wio") !=-1) {
                var id2 = jq(this).next().attr("id");
                if (id2 == null) {
                    id2 = jq(this).next().next().attr("id")
                }
                if (id2 != null) {
                    var id3 = jq("#" + id2 + " .uif-checkboxControl").attr("id");
                    jq("#" + id3).removeAttr("disabled");
                }

            }
        });

    }, 200);
}

function refresh() {
    jq('#rightTreeRefreshButtonForAnalytics').focus().click();
    jq('#leftTreeRefreshButtonForAnalytics').focus().click();
}

//REMOVE ANALYTICS FOLDER IN TREE

/*function analyticsResult(methodToCall) {
    retrieveComponent('AnalyticsSelectionSection', methodToCall, null, null);
    jq('#rightTreeRefreshButtonForAnalytics').focus().click();
    jq('#leftTreeRefreshButtonForAnalytics').focus().click();
}*/

function analyticsTree() {

    window.setTimeout(function () {
        jq("a.analytics ins.jstree-icon").removeClass("jstree-icon");
        jq("a.boundWithbibs ins.jstree-icon").removeClass("jstree-icon");
        jq("#SeriesTreeView_expandAll").focus().click();
        jq("#AnalyticTreeView_expandAll").focus().click();

        jq("#AnalyticsLeftTree_tree a").each(function () {

            var id1 = jq(this).attr("class");

            if (id1.indexOf("wio") !=-1) {
                var id2 = jq(this).next().attr("id");
                if (id2 == null) {
                    id2 = jq(this).next().next().attr("id")
                }
                if (id2 != null) {
                    var id3 = jq("#" + id2 + " .uif-checkboxControl").attr("id");
                    jq("#" + id3).attr("disabled","true");
                }
            }

        });

        jq("#AnalyticsRightTree a").each(function () {

            var id1 = jq(this).attr("class");

            if (id1.indexOf("who") !=-1) {
                var id2 = jq(this).next().attr("id");
                if (id2 == null) {
                    id2 = jq(this).next().next().attr("id");
                }
                if (id2 != null) {
                    var id3 = jq("#" + id2 + " .uif-checkboxControl").attr("id");
                    jq("#" + id3).attr("disabled","true");
                }
            }
        });

    }, 300);
}