0
1
Fork 0

Añadido parametro de configuracion: host servidor de imagenes

This commit is contained in:
Juan Ferrer Toribio 2015-09-24 00:12:57 +02:00
parent f4a2473428
commit 4340980b18
3 changed files with 4 additions and 3 deletions

View File

@ -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 ();';

View File

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

View File

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