%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/grid.js

$(document).ready(function() {
    // Initialise the table
    $("#sortable").tableDnD({
        onDragClass: "tr_drag",
        onDrop: function(table, row) {
            var order = '';
            var rows = table.tBodies[0].rows;
            for (var i=0; i<rows.length; i++) {
                var nodrop = $(rows[i]).hasClass("nodrop");
                if(!nodrop) {
                    if(i % 2) {
                        $(rows[i]).addClass('paratlan');
                    } else {
                         $(rows[i]).removeClass('paratlan');
                    }
                }
                if($(rows[i]).attr('id')) {
                    order += $(rows[i]).attr('id')+",";
                }
            };
            if($('#sorrend_field').length > 0)
            {
                var field = $('#sorrend_field').val();
            }
            else
            {
                var field = 'sorrend';
            }
            ajax('_sort.php', 'order=' + order + '&field=' + field);
        }
    });
});

function changeAll(id)
{
    var chkBox = null;

    for (i=0; i < document.getElementById(id).elements.length; i++)
    {
        if (document.getElementById(id).elements[i].name.search('torol') != -1)
        {
            document.getElementById(id).elements[i].checked = document.getElementById(id+'_checkall').checked;
        }
    }
}

Zerion Mini Shell 1.0