diff --git a/web/js/hedera/gui.js b/web/js/hedera/gui.js index b86c119a..00327274 100755 --- a/web/js/hedera/gui.js +++ b/web/js/hedera/gui.js @@ -14,7 +14,7 @@ Vn.Gui = new Class ,'loading-changed': this.onConnLoading }); - var sql = 'SELECT default_form, image_dir FROM config;' + var sql = 'SELECT default_form, image_dir, image_host FROM config;' +'SELECT production_domain, test_domain FROM config;' +'SELECT name FROM customer_view;' +'CALL form_list ();'; diff --git a/web/js/htk/image-editor.js b/web/js/htk/image-editor.js index c7c5ea8a..f04b66a2 100755 --- a/web/js/htk/image-editor.js +++ b/web/js/htk/image-editor.js @@ -11,6 +11,7 @@ Htk.ImageEditor = new Class this.parent (props) this.builderInit (this.constructor.Xml); this.$('max-size').value = 10 /* MB */ * 1048576; + this.$('form').action = '//'+ Vn.Config['image_host'] +'/rest.php?action=image' } ,onNameChange: function () diff --git a/web/js/htk/image-editor.xml b/web/js/htk/image-editor.xml index 7691c4d6..7ca9ffbb 100644 --- a/web/js/htk/image-editor.xml +++ b/web/js/htk/image-editor.xml @@ -3,10 +3,10 @@

UpdateImage

+ on-submit="onFormSubmit" + id="form">