From 1659c32fee50da3fe0dd3fd9ceba21de96894d06 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 26 Sep 2016 11:28:47 +0200 Subject: [PATCH] Backup --- .gitignore | 2 + app.js | 13 +- conf/apache.conf | 2 +- forms/account/address-list/address-list.js | 4 +- forms/account/address-list/ui.xml | 4 +- forms/account/address/address.js | 4 +- forms/account/conf/conf.js | 4 +- forms/admin/access-log/access-log.js | 4 +- forms/admin/connections/connections.js | 4 +- forms/admin/items/items.js | 4 +- forms/admin/links/links.js | 4 +- forms/admin/photos/photos.js | 4 +- forms/admin/queries/queries.js | 4 +- forms/admin/shelves/shelves.js | 4 +- forms/admin/users/users.js | 4 +- forms/admin/visits/visits.js | 4 +- forms/agencies/packages/packages.js | 4 +- forms/agencies/provinces/provinces.js | 4 +- forms/cms/about/about.js | 4 +- forms/cms/contact/contact.js | 4 +- forms/cms/home/home.js | 4 +- forms/cms/location/location.js | 4 +- forms/cms/training/training.js | 4 +- forms/cms/why/why.js | 4 +- forms/ecomerce/basket/basket.js | 6 +- forms/ecomerce/catalog/catalog.js | 38 +- forms/ecomerce/catalog/ui.xml | 12 +- forms/ecomerce/checkout/checkout.js | 4 +- forms/ecomerce/confirm/confirm.js | 8 +- forms/ecomerce/invoices/invoices.js | 4 +- forms/ecomerce/invoices/ui.xml | 2 +- forms/ecomerce/orders/orders.js | 6 +- forms/ecomerce/orders/ui.xml | 2 +- forms/ecomerce/ticket/ticket.js | 4 +- forms/news/new/new.js | 6 +- forms/news/news/news.js | 4 +- js/db/calc-sum.js | 7 +- js/db/calc.js | 10 +- js/db/connection.js | 49 +- js/db/db.js | 22 +- js/db/form.js | 10 +- js/db/iterator.js | 21 +- js/db/main.js | 18 - js/db/model.js | 160 ++- js/db/param.js | 7 +- js/db/query.js | 6 +- js/db/result-set.js | 7 +- js/db/result.js | 2 +- js/db/simple-iterator.js | 10 +- js/hedera/app.js | 10 +- js/hedera/basket-checker.js | 27 + js/hedera/form.js | 2 +- js/hedera/gui.js | 15 +- js/hedera/gui.xml | 4 +- js/hedera/hedera.js | 21 +- js/hedera/login.js | 31 +- js/hedera/main.js | 15 - js/hedera/module.js | 4 +- js/hedera/report.js | 2 +- js/hedera/tpv.js | 28 +- js/htk/assistant-bar.js | 13 +- js/htk/assistant.js | 2 +- js/htk/column.js | 2 +- js/htk/column/button.js | 16 +- js/htk/column/check.js | 3 +- js/htk/column/date.js | 3 +- js/htk/column/image.js | 3 +- js/htk/column/link.js | 2 +- js/htk/column/radio.js | 3 +- js/htk/column/spin.js | 3 +- js/htk/column/text.js | 3 +- js/htk/field.js | 12 +- js/htk/field/bar-button.js | 7 +- js/htk/field/button.js | 7 +- js/htk/field/calendar.js | 3 +- js/htk/field/check.js | 3 +- js/htk/field/date-chooser.js | 6 +- js/htk/field/entry.js | 3 +- js/htk/field/html.js | 3 +- js/htk/field/image.js | 7 +- js/htk/field/label.js | 3 +- js/htk/field/radio-group.js | 3 +- js/htk/field/radio.js | 7 +- js/htk/field/search-entry.js | 11 +- js/htk/field/select.js | 6 +- js/htk/field/spin.js | 3 +- js/htk/field/table.js | 12 +- js/htk/field/text-area.js | 3 +- js/htk/field/text.js | 3 +- js/htk/full-image.js | 9 +- js/htk/grid.js | 16 +- js/htk/htk.js | 57 +- js/htk/icon.js | 64 + js/htk/image-editor.js | 19 +- js/htk/main.js | 44 - js/htk/popup.js | 9 +- js/htk/repeater.js | 15 +- js/htk/spinner.js | 8 +- js/htk/toast.js | 2 +- js/htk/widget.js | 18 +- js/misc/main.js | 3 - js/misc/mootools.js | 78 -- js/misc/tinymce/license.txt | 504 ------- .../plugins/emoticons/img/smiley-cool.gif | Bin 354 -> 0 bytes .../plugins/emoticons/img/smiley-cry.gif | Bin 329 -> 0 bytes .../emoticons/img/smiley-embarassed.gif | Bin 331 -> 0 bytes .../emoticons/img/smiley-foot-in-mouth.gif | Bin 342 -> 0 bytes .../plugins/emoticons/img/smiley-frown.gif | Bin 340 -> 0 bytes .../plugins/emoticons/img/smiley-innocent.gif | Bin 336 -> 0 bytes .../plugins/emoticons/img/smiley-kiss.gif | Bin 338 -> 0 bytes .../plugins/emoticons/img/smiley-laughing.gif | Bin 343 -> 0 bytes .../emoticons/img/smiley-money-mouth.gif | Bin 321 -> 0 bytes .../plugins/emoticons/img/smiley-sealed.gif | Bin 323 -> 0 bytes .../plugins/emoticons/img/smiley-smile.gif | Bin 344 -> 0 bytes .../emoticons/img/smiley-surprised.gif | Bin 338 -> 0 bytes .../emoticons/img/smiley-tongue-out.gif | Bin 328 -> 0 bytes .../emoticons/img/smiley-undecided.gif | Bin 337 -> 0 bytes .../plugins/emoticons/img/smiley-wink.gif | Bin 350 -> 0 bytes .../plugins/emoticons/img/smiley-yell.gif | Bin 336 -> 0 bytes .../plugins/visualblocks/css/visualblocks.css | 128 -- .../skins/lightgray/content.inline.min.css | 1 - .../tinymce/skins/lightgray/content.min.css | 1 - .../skins/lightgray/fonts/tinymce-small.eot | Bin 10316 -> 0 bytes .../skins/lightgray/fonts/tinymce-small.json | 1043 --------------- .../skins/lightgray/fonts/tinymce-small.svg | 62 - .../skins/lightgray/fonts/tinymce-small.ttf | Bin 10128 -> 0 bytes .../skins/lightgray/fonts/tinymce-small.woff | Bin 7848 -> 0 bytes .../tinymce/skins/lightgray/fonts/tinymce.eot | Bin 10024 -> 0 bytes .../skins/lightgray/fonts/tinymce.json | 1191 ----------------- .../tinymce/skins/lightgray/fonts/tinymce.svg | 63 - .../tinymce/skins/lightgray/fonts/tinymce.ttf | Bin 9860 -> 0 bytes .../skins/lightgray/fonts/tinymce.woff | Bin 7664 -> 0 bytes .../tinymce/skins/lightgray/img/anchor.gif | Bin 53 -> 0 bytes .../tinymce/skins/lightgray/img/loader.gif | Bin 2608 -> 0 bytes .../tinymce/skins/lightgray/img/object.gif | Bin 152 -> 0 bytes js/misc/tinymce/skins/lightgray/img/trans.gif | Bin 43 -> 0 bytes .../tinymce/skins/lightgray/skin.ie7.min.css | 1 - js/misc/tinymce/skins/lightgray/skin.min.css | 1 - js/misc/tinymce/tinymce.min.js | 10 - js/sql/batch.js | 14 +- js/sql/delete.js | 7 +- js/sql/dml.js | 15 +- js/sql/expr.js | 7 +- js/sql/field.js | 7 +- js/sql/filter-item.js | 7 +- js/sql/filter.js | 9 +- js/sql/function.js | 10 +- js/sql/holder.js | 7 +- js/sql/insert.js | 7 +- js/sql/list.js | 7 +- js/sql/main.js | 29 - js/sql/multi-stmt.js | 7 +- js/sql/object.js | 2 +- js/sql/operation.js | 53 +- js/sql/search-tags.js | 7 +- js/sql/select.js | 10 +- js/sql/sql.js | 31 +- js/sql/stmt.js | 10 +- js/sql/string.js | 10 +- js/sql/table.js | 9 +- js/sql/target.js | 7 +- js/sql/update.js | 7 +- js/sql/value.js | 7 +- js/vn/browser.js | 2 +- js/vn/builder.js | 27 +- js/vn/cookie.js | 4 +- js/vn/date.js | 2 +- js/vn/hash-listener.js | 7 +- js/vn/hash-param.js | 16 +- js/vn/hash.js | 7 +- js/vn/ie.js | 2 +- js/vn/json-connection.js | 14 +- js/vn/json-exception.js | 2 +- js/vn/locale.js | 11 +- js/vn/main.js | 21 - js/vn/mutators.js | 16 +- js/vn/node.js | 4 +- js/vn/object.js | 5 +- js/vn/param.js | 16 +- js/vn/url.js | 3 +- js/vn/value.js | 8 +- js/vn/vn.js | 32 +- package.json | 23 +- reports/delivery-note/delivery-note.js | 4 +- reports/items-report/items-report.js | 4 +- reports/shelves-report/shelves-report.js | 4 +- rest/core/query.php | 40 +- web/html-service.php | 2 +- webpack.config.js | 20 +- 189 files changed, 1001 insertions(+), 3768 deletions(-) create mode 100644 .gitignore delete mode 100644 js/db/main.js create mode 100644 js/hedera/basket-checker.js delete mode 100644 js/hedera/main.js create mode 100644 js/htk/icon.js delete mode 100644 js/htk/main.js delete mode 100644 js/misc/main.js delete mode 100644 js/misc/mootools.js delete mode 100755 js/misc/tinymce/license.txt delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-cool.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-cry.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-embarassed.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-frown.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-innocent.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-kiss.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-laughing.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-money-mouth.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-sealed.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-smile.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-surprised.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-tongue-out.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-undecided.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-wink.gif delete mode 100644 js/misc/tinymce/plugins/emoticons/img/smiley-yell.gif delete mode 100644 js/misc/tinymce/plugins/visualblocks/css/visualblocks.css delete mode 100644 js/misc/tinymce/skins/lightgray/content.inline.min.css delete mode 100644 js/misc/tinymce/skins/lightgray/content.min.css delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce-small.eot delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce-small.json delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce-small.svg delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce-small.ttf delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce-small.woff delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce.eot delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce.json delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce.svg delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce.ttf delete mode 100755 js/misc/tinymce/skins/lightgray/fonts/tinymce.woff delete mode 100644 js/misc/tinymce/skins/lightgray/img/anchor.gif delete mode 100644 js/misc/tinymce/skins/lightgray/img/loader.gif delete mode 100644 js/misc/tinymce/skins/lightgray/img/object.gif delete mode 100644 js/misc/tinymce/skins/lightgray/img/trans.gif delete mode 100644 js/misc/tinymce/skins/lightgray/skin.ie7.min.css delete mode 100644 js/misc/tinymce/skins/lightgray/skin.min.css delete mode 100644 js/misc/tinymce/tinymce.min.js delete mode 100644 js/sql/main.js delete mode 100644 js/vn/main.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9bc0ab50 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +hedera-web.js diff --git a/app.js b/app.js index 5009b804..0e456ebc 100644 --- a/app.js +++ b/app.js @@ -1,9 +1,10 @@ -//Vn.includeCss ('pages/main/style.css'); +var Hedera = require ('hedera/hedera'); +Vn.includeCss ('pages/main/style.css'); -var Hedera = require ('./js/hedera/main'); -var App = require ('./js/hedera/app'); +window.onload = function main () +{ + hederaWeb = new Hedera.App (); + hederaWeb.run (); +} -hederaWeb = new App (); -hederaWeb.run (); -window.hederaWeb = hederaWeb; diff --git a/conf/apache.conf b/conf/apache.conf index 0206bd5f..cf8b07c4 100644 --- a/conf/apache.conf +++ b/conf/apache.conf @@ -1,5 +1,5 @@ # Alias /hedera-web /usr/share/hedera-web/ -# Alias /vn-image-data /var/lib/hedera-web/image-db/ +# Alias /image-db /var/lib/hedera-web/image-db/ diff --git a/forms/account/address-list/address-list.js b/forms/account/address-list/address-list.js index 57141a56..86aeb89c 100644 --- a/forms/account/address-list/address-list.js +++ b/forms/account/address-list/address-list.js @@ -1,7 +1,7 @@ -Vn.AddressList = new Class +Hedera.AddressList = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/account/address-list/ui.xml b/forms/account/address-list/ui.xml index 4bba3fdc..b1203d3f 100755 --- a/forms/account/address-list/ui.xml +++ b/forms/account/address-list/ui.xml @@ -47,13 +47,13 @@ form="iter" column="id" tip="_RemoveAddress" - image="image/delete.svg" + icon="delete" on-click="onRemoveAddressClick"/>

diff --git a/forms/account/address/address.js b/forms/account/address/address.js index aca0a781..d977a2c3 100644 --- a/forms/account/address/address.js +++ b/forms/account/address/address.js @@ -1,7 +1,7 @@ -Vn.Address = new Class +Hedera.Address = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/account/conf/conf.js b/forms/account/conf/conf.js index 866563e3..06d387d3 100644 --- a/forms/account/conf/conf.js +++ b/forms/account/conf/conf.js @@ -1,7 +1,7 @@ -Vn.Conf = new Class +Hedera.Conf = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/admin/access-log/access-log.js b/forms/admin/access-log/access-log.js index f226a950..8efbd52a 100644 --- a/forms/admin/access-log/access-log.js +++ b/forms/admin/access-log/access-log.js @@ -1,6 +1,6 @@ -Vn.AccessLog = new Class +Hedera.AccessLog = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form }); diff --git a/forms/admin/connections/connections.js b/forms/admin/connections/connections.js index ba3fd12f..ff66f4d3 100644 --- a/forms/admin/connections/connections.js +++ b/forms/admin/connections/connections.js @@ -1,7 +1,7 @@ -Vn.Connections = new Class +Hedera.Connections = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,_timeoutId: null diff --git a/forms/admin/items/items.js b/forms/admin/items/items.js index bb42361d..b029e140 100644 --- a/forms/admin/items/items.js +++ b/forms/admin/items/items.js @@ -1,7 +1,7 @@ -Vn.Items = new Class +Hedera.Items = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/admin/links/links.js b/forms/admin/links/links.js index 41c14fa7..f19f14a1 100644 --- a/forms/admin/links/links.js +++ b/forms/admin/links/links.js @@ -1,7 +1,7 @@ -Vn.Links = new Class +Hedera.Links = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,repeaterFunc: function (res, form) { diff --git a/forms/admin/photos/photos.js b/forms/admin/photos/photos.js index e158aad2..833273de 100644 --- a/forms/admin/photos/photos.js +++ b/forms/admin/photos/photos.js @@ -1,7 +1,7 @@ -Vn.Photos = new Class +Hedera.Photos = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/admin/queries/queries.js b/forms/admin/queries/queries.js index 4e273761..38b9e581 100644 --- a/forms/admin/queries/queries.js +++ b/forms/admin/queries/queries.js @@ -1,7 +1,7 @@ -Vn.Queries = new Class +Hedera.Queries = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/admin/shelves/shelves.js b/forms/admin/shelves/shelves.js index d2c0d050..d1753511 100644 --- a/forms/admin/shelves/shelves.js +++ b/forms/admin/shelves/shelves.js @@ -1,7 +1,7 @@ -Vn.Shelves = new Class +Hedera.Shelves = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/admin/users/users.js b/forms/admin/users/users.js index e04f0b3f..471b4d4b 100644 --- a/forms/admin/users/users.js +++ b/forms/admin/users/users.js @@ -1,7 +1,7 @@ -Vn.Users = new Class +Hedera.Users = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,onAccessLogClick: function (button, form) { diff --git a/forms/admin/visits/visits.js b/forms/admin/visits/visits.js index a8454491..fd4c40b0 100644 --- a/forms/admin/visits/visits.js +++ b/forms/admin/visits/visits.js @@ -1,7 +1,7 @@ -Vn.Visits = new Class +Hedera.Visits = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/agencies/packages/packages.js b/forms/agencies/packages/packages.js index d3f0db86..b71a13b6 100644 --- a/forms/agencies/packages/packages.js +++ b/forms/agencies/packages/packages.js @@ -1,7 +1,7 @@ -Vn.Packages = new Class +Hedera.Packages = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,onShowClick: function (column, agencyId) { diff --git a/forms/agencies/provinces/provinces.js b/forms/agencies/provinces/provinces.js index fe50c3d1..723fc15c 100644 --- a/forms/agencies/provinces/provinces.js +++ b/forms/agencies/provinces/provinces.js @@ -1,6 +1,6 @@ -Vn.Provinces = new Class +Hedera.Provinces = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form }); diff --git a/forms/cms/about/about.js b/forms/cms/about/about.js index fa65a1cc..1244f041 100644 --- a/forms/cms/about/about.js +++ b/forms/cms/about/about.js @@ -1,6 +1,6 @@ -Vn.About = new Class +Hedera.About = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form }); diff --git a/forms/cms/contact/contact.js b/forms/cms/contact/contact.js index c95892a8..509863ae 100644 --- a/forms/cms/contact/contact.js +++ b/forms/cms/contact/contact.js @@ -1,7 +1,7 @@ -Vn.Contact = new Class +Hedera.Contact = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,activate: function () { diff --git a/forms/cms/home/home.js b/forms/cms/home/home.js index 2306c4c6..d8a544d8 100644 --- a/forms/cms/home/home.js +++ b/forms/cms/home/home.js @@ -1,7 +1,7 @@ -Vn.Home = new Class +Hedera.Home = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,onStartOrderClick: function () { diff --git a/forms/cms/location/location.js b/forms/cms/location/location.js index a1f051bf..dc823f5f 100644 --- a/forms/cms/location/location.js +++ b/forms/cms/location/location.js @@ -1,9 +1,9 @@ var gmapsIsLoaded = false; -Vn.Location = new Class +Hedera.Location = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,locations: null diff --git a/forms/cms/training/training.js b/forms/cms/training/training.js index 2e7b514b..adb059b7 100644 --- a/forms/cms/training/training.js +++ b/forms/cms/training/training.js @@ -1,5 +1,5 @@ -Vn.Training = new Class +Hedera.Training = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form }); diff --git a/forms/cms/why/why.js b/forms/cms/why/why.js index a29a3c04..ab2f919a 100644 --- a/forms/cms/why/why.js +++ b/forms/cms/why/why.js @@ -1,6 +1,6 @@ -Vn.Why = new Class +Hedera.Why = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form }); diff --git a/forms/ecomerce/basket/basket.js b/forms/ecomerce/basket/basket.js index e267c7f0..66f9fe08 100644 --- a/forms/ecomerce/basket/basket.js +++ b/forms/ecomerce/basket/basket.js @@ -1,14 +1,14 @@ -Vn.Basket = new Class +Hedera.Basket = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,open: function () { this.close (); this.isOpen = true; - Vn.BasketChecker.check (this.conn, + Hedera.BasketChecker.check (this.conn, this.onBasketCheck.bind (this)); } diff --git a/forms/ecomerce/catalog/catalog.js b/forms/ecomerce/catalog/catalog.js index 95f4f064..2fb2895a 100644 --- a/forms/ecomerce/catalog/catalog.js +++ b/forms/ecomerce/catalog/catalog.js @@ -1,7 +1,7 @@ -Vn.Catalog = new Class +Hedera.Catalog = new Class ({ - Extends: Vn.Form + Extends: Hedera.Form ,_menuShown: false @@ -10,9 +10,9 @@ Vn.Catalog = new Class this.close (); this.isOpen = true; - if (!Vn.Cookie.check ('hedera_guest')) + if (!localStorage.getItem ('hederaGuest')) { - Vn.BasketChecker.check (this.conn, + Hedera.BasketChecker.check (this.conn, this.onBasketCheck.bind (this)); } else @@ -35,9 +35,9 @@ Vn.Catalog = new Class this.$('items-model').setInfo ('a', 'Articles', 'vn2008', ['item_id']); if (localStorage.getItem ('hederaView')) - this.setView (parsetInt (localStorage.getItem ('hederaView'))); + this.setView (parseInt (localStorage.getItem ('hederaView'))); else - this.setView (Vn.Catalog.View.GRID); + this.setView (Hedera.Catalog.View.GRID); } ,deactivate: function () @@ -49,22 +49,22 @@ Vn.Catalog = new Class ,setView: function (view) { - if (view === Vn.Catalog.View.GRID) + if (view === Hedera.Catalog.View.GRID) { this.$('view-button').setProperties ({ - image: 'image/dark/view-list.svg', + icon: 'view-list', tip: _('List view') }); - this.view = Vn.Catalog.View.GRID; + this.view = Hedera.Catalog.View.GRID; var className = 'grid-view'; } else { this.$('view-button').setProperties ({ - image: 'image/dark/view-grid.svg', + image: 'view-grid', tip: _('Grid view') }); - this.view = Vn.Catalog.View.LIST; + this.view = Hedera.Catalog.View.LIST; var className = 'list-view'; } @@ -75,8 +75,8 @@ Vn.Catalog = new Class ,onSwitchViewClick: function () { - this.setView (this.view === Vn.Catalog.View.LIST ? - Vn.Catalog.View.GRID : Vn.Catalog.View.LIST); + this.setView (this.view === Hedera.Catalog.View.LIST ? + Hedera.Catalog.View.GRID : Hedera.Catalog.View.LIST); } ,onBasketReady: function (form) @@ -237,7 +237,7 @@ Vn.Catalog = new Class ,isGuest: function () { - if (Vn.Cookie.check ('hedera_guest')) + if (localStorage.getItem ('hederaGuest')) { Htk.Toast.showError (_('YouMustBeLoggedIn')); return true; @@ -348,7 +348,7 @@ Vn.Catalog = new Class } }); -Vn.Catalog.extend +Hedera.Catalog.extend ({ View: { LIST: 0, @@ -496,9 +496,11 @@ Vn.Filter = new Class this._onCloseClick.bind (this, li)); li.appendChild (button); - var img = document.createElement ('img'); - img.src = 'image/close.svg'; - button.appendChild (img); + var icon = new Htk.Icon ({ + icon: 'close', + alt: _('Close') + }); + button.appendChild (icon); var text = this._label = document.createTextNode (''); li.appendChild (text); diff --git a/forms/ecomerce/catalog/ui.xml b/forms/ecomerce/catalog/ui.xml index 4722fd6b..f9b61315 100755 --- a/forms/ecomerce/catalog/ui.xml +++ b/forms/ecomerce/catalog/ui.xml @@ -450,20 +450,22 @@