|
|
@ -2,10 +2,11 @@
|
|
|
|
/*global define, socket, app, bootbox, templates, ajaxify, RELATIVE_PATH, Sortable */
|
|
|
|
/*global define, socket, app, bootbox, templates, ajaxify, RELATIVE_PATH, Sortable */
|
|
|
|
|
|
|
|
|
|
|
|
define('admin/manage/categories', function() {
|
|
|
|
define('admin/manage/categories', function() {
|
|
|
|
var Categories = {}, newCategoryId = -1, sortables, itemTemplate;
|
|
|
|
var Categories = {}, newCategoryId = -1, sortables;
|
|
|
|
|
|
|
|
|
|
|
|
Categories.init = function() {
|
|
|
|
Categories.init = function() {
|
|
|
|
socket.emit('admin.categories.getAll', function(error, payload){
|
|
|
|
socket.emit('admin.categories.getAll', function(error, payload){
|
|
|
|
|
|
|
|
console.log(payload);
|
|
|
|
if(error){
|
|
|
|
if(error){
|
|
|
|
return app.alertError(error.message);
|
|
|
|
return app.alertError(error.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|