This commit is contained in:
Juan Ferrer Toribio 2015-09-28 16:05:54 +02:00
parent 1f03a4c9a8
commit 56d384779a
3 changed files with 22 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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)
{