Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
removed drag/drop for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Großmann committed Jul 16, 2015
1 parent 97d1b34 commit c4e86cb
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions master/public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var $ = jQuery;
require('bootstrap/js/transition');
require('bootstrap/js/collapse');


var CronJob = require('cron').CronJob;

var full = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '');
Expand Down Expand Up @@ -47,7 +46,6 @@ function setState($client, state) {
return clientTogglePending($client, false).removeClass([clientState.OFF, clientState.ON, clientState.UNDEFINED].join(' ')).addClass(clientState[state.toUpperCase()]);
}


function makeHTML(clientPool) {
var headline = 'Clients';

Expand Down Expand Up @@ -112,7 +110,6 @@ var validate = {
}
};


$.fn.findGroup = function () {
return this.parents('.clients').first();
};
Expand Down Expand Up @@ -325,13 +322,11 @@ $(function () {
});

/* drap and drop */

var dragDrop = require('./lib/dragdrop');
dragDrop.on(dragDrop.CLIENT_MOVED, function (client, group) {
socket.emit(socketEvents.CLIENT_MOVED, {
id: $(client).attr('client'),
group: $(group).attr('group')
});
})

//var dragDrop = require('./lib/dragdrop');
//dragDrop.on(dragDrop.CLIENT_MOVED, function (client, group) {
// socket.emit(socketEvents.CLIENT_MOVED, {
// id: $(client).attr('client'),
// group: $(group).attr('group')
// });
//})
});

0 comments on commit c4e86cb

Please sign in to comment.