|
|
@ -203,6 +203,7 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var showCategories = function (cat) {
|
|
|
|
var showCategories = function (cat) {
|
|
|
|
hideCategories();
|
|
|
|
hideCategories();
|
|
|
|
|
|
|
|
if (!Array.isArray(cat)) { return void console.error("invalid category"); }
|
|
|
|
cat.forEach(function (c) {
|
|
|
|
cat.forEach(function (c) {
|
|
|
|
APP.$rightside.find('.'+c).show();
|
|
|
|
APP.$rightside.find('.'+c).show();
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -214,6 +215,7 @@ define([
|
|
|
|
var metadataMgr = common.getMetadataMgr();
|
|
|
|
var metadataMgr = common.getMetadataMgr();
|
|
|
|
var privateData = metadataMgr.getPrivateData();
|
|
|
|
var privateData = metadataMgr.getPrivateData();
|
|
|
|
var active = privateData.category || 'tickets';
|
|
|
|
var active = privateData.category || 'tickets';
|
|
|
|
|
|
|
|
if (!categories[active]) { active = 'tickets'; }
|
|
|
|
common.setHash(active);
|
|
|
|
common.setHash(active);
|
|
|
|
Object.keys(categories).forEach(function (key) {
|
|
|
|
Object.keys(categories).forEach(function (key) {
|
|
|
|
var $category = $('<div>', {
|
|
|
|
var $category = $('<div>', {
|
|
|
|