|
|
|
@ -58,7 +58,7 @@ jQuery('.blockclass').each(function() {
|
|
|
|
|
var category = {
|
|
|
|
|
name:$('#inputName').val(),
|
|
|
|
|
description:$('#inputDescription').val(),
|
|
|
|
|
icon:$('#new-category-modal i').val(),
|
|
|
|
|
icon:$('#new-category-modal i').attr('value'),
|
|
|
|
|
blockclass:$('#inputBlockclass').val()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -72,6 +72,9 @@ jQuery('.blockclass').each(function() {
|
|
|
|
|
timeout: 2000
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var html = templates.prepare(templates['admin/categories'].blocks['categories']).parse({categories:[data]});
|
|
|
|
|
$('#entry-container').append(html);
|
|
|
|
|
|
|
|
|
|
$('#new-category-modal').modal('hide');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|