AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.114
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_apps/team/assets/js/aci-tree/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/team/assets/js/aci-tree/js/jquery.aciTree.debug.js
/*
 * aciTree jQuery Plugin v4.5.0-rc.3
 * http://acoderinsights.ro
 *
 * Copyright (c) 2014 Dragos Ursu
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Require jQuery Library >= v1.9.0 http://jquery.com
 * + aciPlugin >= v1.5.1 https://github.com/dragosu/jquery-aciPlugin
 */

/*
 * This extension adds debug capabilities, for now it's just a log of the aciTree events.
 */

(function($, window, undefined) {

    // extra default options

    var options = {
        logTo: null        // selector for the element where to log the errors to
    };

    // aciTree debug extension

    var aciTree_debug = {
        __extend: function() {
            $.extend(this._private, {
                logTo: null
            });
            // call the parent
            this._super();
        },
        // init debug
        _debugInit: function() {
            if (this._instance.options.logTo) {
                this._private.logTo = $(this._instance.options.logTo);
            }
            this._instance.jQuery.bind('acitree' + this._private.nameSpace, this.proxy(function(event, api, item, eventName, options) {
                var message = 'aciTree event:' + eventName + ' for:' + (item ? api.getId(item) : 'ROOT') + ' uid:' + options.uid +
                        ' success:' + (options.success ? 'Y' : 'N') + ' fail:' + (options.fail ? 'Y' : 'N') + ' expand:' + (options.expand ? 'Y' : 'N') +
                        ' collapse:' + (options.collapse ? 'Y' : 'N') + ' unique:' + (options.unique ? 'Y' : 'N') + ' animated:' + (options.unanimated ? 'N' : 'Y');
                if (this._private.logTo) {
                    this._private.logTo.prepend(message.replace(/([^\s]+:)/g, '<span style="color:#888">$1</span>') + '<br>');
                } else if (console && console.log) {
                    console.log(message);
                } else {
                    throw new Error(message);
                }
            }));
        },
        // override `_initHook`
        _initHook: function() {
            this._debugInit();
            // call the parent
            this._super();
        },
        // override set `option`
        option: function(option, value) {
            if (option == 'logTo') {
                this._private.logTo = value ? $(value) : null;
            }
            // call the parent
            this._super(option, value);
        },
        // done debug
        _debugDone: function() {
            this._instance.jQuery.unbind(this._private.nameSpace);
        },
        // override _destroyHook
        _destroyHook: function(unloaded) {
            if (unloaded) {
                this._debugDone();
            }
            // call the parent
            this._super(unloaded);
        }
    };

    // extend the base aciTree class and add the hash stuff
    aciPluginClass.plugins.aciTree = aciPluginClass.plugins.aciTree.extend(aciTree_debug, 'aciTreeDebug');

    // add extra default options
    aciPluginClass.defaults('aciTree', options);

})(jQuery, this);

Anon7 - 2022
AnonSec Team