Things just don't seem to work right with git.

Signed-off-by: liquibyte <liquibyte@gmail.com>
This commit is contained in:
liquibyte 2014-01-29 23:50:55 -05:00
parent f97f35dd5e
commit 0f6e40c7da

View File

@ -1,6 +1,6 @@
/* /*
* nibble widget js admin * FlatPress widget js admin
* Based on original nibble' code * Based on original FlatPress' code
* Require jQuery and jQuery UI (Core, Draggable, Droppable and Effects Core) * Require jQuery and jQuery UI (Core, Draggable, Droppable and Effects Core)
* Coded by Piero VDFN <vogliadifarniente@gmail.com> * Coded by Piero VDFN <vogliadifarniente@gmail.com>
* Re-Coded by liquibyte <liquibyte@gmail.com> * Re-Coded by liquibyte <liquibyte@gmail.com>
@ -12,7 +12,7 @@
* accepts drag and drop from installed widgets to remove. * accepts drag and drop from installed widgets to remove.
* Released under GNU GPL v2 * Released under GNU GPL v2
*/ */
var nibble = { var FlatPress = {
winstancedrag : function() { winstancedrag : function() {
$('.widget-class').draggable({ $('.widget-class').draggable({
'scroll' : true, 'scroll' : true,
@ -67,7 +67,7 @@ var nibble = {
if (parent.children().length < 1) { if (parent.children().length < 1) {
parent.append('<li class="widget-placeholder">Drop here</li>'); parent.append('<li class="widget-placeholder">Drop here</li>');
} }
nibble.wreload(); FlatPress.wreload();
} }
}); });
}, },
@ -94,7 +94,7 @@ var nibble = {
if (parent.children().length < 1) { if (parent.children().length < 1) {
parent.append('<li class="widget-placeholder">Drop here</li>'); parent.append('<li class="widget-placeholder">Drop here</li>');
} }
nibble.wreload(); FlatPress.wreload();
} }
}); });
}, },
@ -120,7 +120,7 @@ var nibble = {
setTimeout(function() { setTimeout(function() {
draggable.remove(); draggable.remove();
}); });
nibble.wreload(); FlatPress.wreload();
} }
}); });
$('.widget-class').droppable({ $('.widget-class').droppable({
@ -144,7 +144,7 @@ var nibble = {
setTimeout(function() { setTimeout(function() {
draggable.remove(); draggable.remove();
}); });
nibble.wreload(); FlatPress.wreload();
} }
}); });
@ -155,4 +155,4 @@ var nibble = {
this.wplaceholder(); this.wplaceholder();
} }
} }
nibble.wreload();nibble.wtrash(); FlatPress.wreload();FlatPress.wtrash();