/*jslint white: true, browser: true, undef: true, nomen: true, eqeqeq: true, plusplus: false, bitwise: true, regexp: true, strict: true, newcap: true, immed: true, maxerr: 14 */
/*global window: false, REDIPS: true */

/* enable strict mode */
"use strict";

// define redipsInit variable
var redipsInit;

// redips initialization
redipsInit = function () {
   // reference to the REDIPS.drag library and message line
   var rd = REDIPS.drag, msg;
   // initialization
   rd.init("drag_checks");
   rd.init("drag_files");
   rd.init("drag_actions");
   // set hover color for TD and TR
   rd.hover.colorTr = '#FFF4DF';
   // set hover border for current TD and TR
   rd.hover.borderTr = '2px solid #c0cc7b';
   // drop row after highlighted row (if row is dropped to other tables)
   rd.rowDropMode = 'after';

   // row was moved - event handler
   rd.event.rowMoved = function () {
      // set opacity for moved row
      // rd.obj is reference of cloned row (mini table)
      rd.rowOpacity(rd.obj, 30);
      // set opacity for source row and change source row background color
      // rd.objOld is reference of source row
      rd.rowOpacity(rd.objOld, 20, '#f1f4e3');
   };

   // row was dropped - event handler
   rd.event.rowDropped = function () {
      var pos = rd.getPosition();

      // display message
      console.log('Dropped: ' + pos[0] + ' ' + pos[1]);
   };

   // row was dropped to the source - event handler
   // mini table (cloned row) will be removed and source row should return to original state
   rd.event.rowDroppedSource = function () {
      // make source row completely visible (no opacity)
      rd.rowOpacity(rd.objOld, 100);
   };
};

redipsInit();
/*jslint white: true, browser: true, undef: true, nomen: true, eqeqeq: true, plusplus: false, bitwise: true, regexp: true, strict: true, newcap: true, immed: true, maxerr: 14 */
/*global window: false, REDIPS: true */

/* enable strict mode */
"use strict";

// define redipsInit variable
var redipsInit;

// redips initialization
redipsInit = function () {
   // reference to the REDIPS.drag library and message line
   var rd = REDIPS.drag, msg;
   // initialization
   if (document.getElementById("drag_checks")  != null) rd.init("drag_checks");
   if (document.getElementById("drag_files")   != null) rd.init("drag_files");
   if (document.getElementById("drag_actions") != null) rd.init("drag_actions");
   // set hover color for TD and TR
   rd.hover.colorTr = '#FFF4DF';
   // set hover border for current TD and TR
   rd.hover.borderTr = '2px solid #c0cc7b';
   // drop row after highlighted row (if row is dropped to other tables)
   rd.rowDropMode = 'after';

   // row was moved - event handler
   rd.event.rowMoved = function () {
      // set opacity for moved row
      // rd.obj is reference of cloned row (mini table)
      rd.rowOpacity(rd.obj, 30);
      // set opacity for source row and change source row background color
      // rd.objOld is reference of source row
      rd.rowOpacity(rd.objOld, 20, '#f1f4e3');
   };

   // row was dropped - event handler
   rd.event.rowDropped = function () {
      var pos = rd.getPosition();

      // display message
      console.log('Dropped: ' + pos[0] + ' ' + pos[1]);
   };

   // row was dropped to the source - event handler
   // mini table (cloned row) will be removed and source row should return to original state
   rd.event.rowDroppedSource = function () {
      // make source row completely visible (no opacity)
      rd.rowOpacity(rd.objOld, 100);
   };
};

redipsInit();
package : fix js error in previous commit