forked from verdnatura/hedera-web
Añadido parametro de configuracion: host servidor de imagenes
This commit is contained in:
parent
f4a2473428
commit
4340980b18
|
@ -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 ();';
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<h2><t>UpdateImage</t></h2>
|
||||
<form
|
||||
method="post"
|
||||
action="rest.php?action=image"
|
||||
target="image-editor"
|
||||
enctype="multipart/form-data"
|
||||
on-submit="onFormSubmit">
|
||||
on-submit="onFormSubmit"
|
||||
id="form">
|
||||
<div class="form-group">
|
||||
<label for="name"><t>FileName</t></label>
|
||||
<input id="name" type="text" name="name" on-change="onNameChange"/>
|
||||
|
|
Loading…
Reference in New Issue