Alpha 5
This commit is contained in:
parent
1f03a4c9a8
commit
56d384779a
|
@ -344,6 +344,13 @@ Vn.Catalog = new Class
|
||||||
if (this.popup)
|
if (this.popup)
|
||||||
this.popup.reset ();
|
this.popup.reset ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
,onSelectClick: function (select, e)
|
||||||
|
{
|
||||||
|
console.debug ('Select clicked!');
|
||||||
|
console.debug (select, e);
|
||||||
|
select.model.refresh ();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Vn.FilterButton = new Class
|
Vn.FilterButton = new Class
|
||||||
|
|
|
@ -29,10 +29,11 @@
|
||||||
SELECT Id_Article item_id FROM vn2008.Articles
|
SELECT Id_Article item_id FROM vn2008.Articles
|
||||||
WHERE #filter;
|
WHERE #filter;
|
||||||
CALL bionic_calc ();
|
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
|
a.Foto, a.Article, a.Categoria, a.Medida, a.Tallos, a.Color, o.Abreviatura
|
||||||
FROM tmp.bionic_item t
|
FROM tmp.bionic_item t
|
||||||
JOIN vn2008.Articles a ON a.Id_Article = t.item_id
|
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
|
LEFT JOIN vn2008.Origen o ON a.id_origen = o.id
|
||||||
WHERE t.available > 0
|
WHERE t.available > 0
|
||||||
ORDER BY a.Article, a.Medida
|
ORDER BY a.Article, a.Medida
|
||||||
|
|
|
@ -101,6 +101,19 @@ Htk.Select = new Class
|
||||||
this.node.addEventListener ('change', this.changed.bind (this));
|
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)
|
,setRow: function (row)
|
||||||
{
|
{
|
||||||
this._row = row;
|
this._row = row;
|
||||||
|
|
Loading…
Reference in New Issue