PHP Classes

File: Assets/js/meta-drag-and-drop.js

Recommend this page to a friend!
  Classes of kiran  >  MetaMagik  >  Assets/js/meta-drag-and-drop.js  >  Download  
File: Assets/js/meta-drag-and-drop.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: MetaMagik
Plugin to add custom form fields for Kanboard
Author: By
Last change:
Date: 1 year ago
Size: 1,524 bytes


Class file image Download
KB.on('dom.ready', function() {

    function savePosition(metadataId, position, columnNumber) {
        var url = $(".metadata-table").data("save-position-url");

            cache: false,
            url: url,
            contentType: "application/json",
            type: "POST",
            processData: false,
            data: JSON.stringify({
                "id": metadataId,
                "position": position,
                "columnnumber": columnNumber

    $(".draggable-row-handle").mouseenter(function() {
    }).mouseleave(function() {

    $(".metadata-table tbody").sortable({
        connectWith: ".connected",
        items: "tr:not(.disabled)",
        forcePlaceholderSize: true,
        handle: "td:first i",
        helper: function(e, ui) {
            ui.children().each(function() {

            return ui;
        stop: function(event, ui) {
            var metadata = ui.item;
            var newcol = metadata.parent().attr("id");
            savePosition("metadata-id"), metadata.index(), newcol);
        start: function(event, ui) {
For more information send a message to info at phpclasses dot org.