Remove default categories

This commit is contained in:
Benjamin Renard 2014-08-02 16:39:33 +02:00
parent ddaa11ec4f
commit 384ead0025

View file

@ -526,21 +526,6 @@ function Group(uuid,name,data) {
this.categories[uuid]=this.importCategory(data.categories[uuid]); this.categories[uuid]=this.importCategory(data.categories[uuid]);
} }
} }
else {
categories= {
'Alimentation': '#1f83db',
'Restaurant': '#f07305',
'Loisir': '#d413ce',
'Transport': '#13d413',
'Vacances': '#e9fa00',
'Maison': '#e9fa00',
'Rembourssement': '#8a8b8c',
'Cadeau': '#a700fa'
};
for (c in categories) {
this.categories[generate_uuid()]=new Category(c,categories[c]);
}
}
if (jQuery.type(data.deletedCategories) == 'object') { if (jQuery.type(data.deletedCategories) == 'object') {
for (uuid in data.deletedCategories) { for (uuid in data.deletedCategories) {
this.deletedCategories[uuid]=data.deletedCategories[uuid]; this.deletedCategories[uuid]=data.deletedCategories[uuid];