diff --git a/web/forms/ecomerce/catalog/catalog.js b/web/forms/ecomerce/catalog/catalog.js index 75f9ff9a..bf00cc6a 100755 --- a/web/forms/ecomerce/catalog/catalog.js +++ b/web/forms/ecomerce/catalog/catalog.js @@ -344,6 +344,13 @@ Vn.Catalog = new Class if (this.popup) this.popup.reset (); } + + ,onSelectClick: function (select, e) + { + console.debug ('Select clicked!'); + console.debug (select, e); + select.model.refresh (); + } }); Vn.FilterButton = new Class diff --git a/web/forms/ecomerce/catalog/ui.xml b/web/forms/ecomerce/catalog/ui.xml index 06b4d5b2..80d3c394 100755 --- a/web/forms/ecomerce/catalog/ui.xml +++ b/web/forms/ecomerce/catalog/ui.xml @@ -29,10 +29,11 @@ SELECT Id_Article item_id FROM vn2008.Articles WHERE #filter; CALL bionic_calc (); - SELECT t.item_id, t.available, t.price, t.producer, + SELECT t.item_id, t.available, t.price, p.producer, a.Foto, a.Article, a.Categoria, a.Medida, a.Tallos, a.Color, o.Abreviatura FROM tmp.bionic_item t JOIN vn2008.Articles a ON a.Id_Article = t.item_id + LEFT JOIN vn2008.Articles_producer p ON p.Id_Article = a.Id_Article LEFT JOIN vn2008.Origen o ON a.id_origen = o.id WHERE t.available > 0 ORDER BY a.Article, a.Medida diff --git a/web/js/htk/field/select.js b/web/js/htk/field/select.js index 5861cc87..61c88af5 100755 --- a/web/js/htk/field/select.js +++ b/web/js/htk/field/select.js @@ -100,6 +100,19 @@ Htk.Select = new Class this.createElement ('select'); this.node.addEventListener ('change', this.changed.bind (this)); } + + ,on: function (id, callback, instance) + { + switch (id) + { + case 'click': + this.node.addEventListener (id, + callback.bind (instance, this)); + break; + default: + this.parent (id, callback, instance); + } + } ,setRow: function (row) {