From 1ad072f2a9e5ad415475c258341364e7cd7184bf Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Thu, 15 Feb 2018 10:47:59 +0530 Subject: [PATCH] [hub] cleanups --- erpnext/public/js/hub/hub_form.js | 2 +- erpnext/public/js/hub/hub_page.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/erpnext/public/js/hub/hub_form.js b/erpnext/public/js/hub/hub_form.js index fe39793f15..130a0db45c 100644 --- a/erpnext/public/js/hub/hub_form.js +++ b/erpnext/public/js/hub/hub_form.js @@ -106,7 +106,7 @@ erpnext.hub.ItemPage = class ItemPage extends erpnext.hub.HubForm{ category_field.read_only = 1; } - fields.push(category_field); + fields.unshift(category_field); return fields; } diff --git a/erpnext/public/js/hub/hub_page.js b/erpnext/public/js/hub/hub_page.js index f333feedb1..46e5ce4493 100644 --- a/erpnext/public/js/hub/hub_page.js +++ b/erpnext/public/js/hub/hub_page.js @@ -13,14 +13,12 @@ erpnext.hub.HubListing = class HubListing extends frappe.views.BaseList { setup_fields() { return this.get_meta() .then(r => { - // console.log('fields then', this.doctype); this.meta = r.message || this.meta; frappe.model.sync(this.meta); }); } get_meta() { - // console.log('get_meta', this.doctype); return new Promise(resolve => frappe.call('erpnext.hub_node.get_meta', {doctype: this.doctype}, resolve)); } @@ -51,7 +49,6 @@ erpnext.hub.HubListing = class HubListing extends frappe.views.BaseList { update_data(r) { const data = r.message; - console.log('update data', data); if (this.start === 0) { this.data = data; @@ -79,7 +76,6 @@ erpnext.hub.HubListing = class HubListing extends frappe.views.BaseList { render_image_view() { let data = this.data; - // console.log('this.data render', this.data); if (this.start === 0) { this.$result.html('
'); data = this.data.slice(this.start); @@ -164,7 +160,6 @@ erpnext.hub.ItemListing = class ItemListing extends erpnext.hub.HubListing { item._name = encodeURI(item.name); const encoded_name = item._name; const title = strip_html(item['item_name' || 'item_code']); - // console.log(item); const company_name = item['company_name']; const route = `#Hub/Item/${item.hub_item_code}`;