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 ,'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 production_domain, test_domain FROM config;'
+'SELECT name FROM customer_view;' +'SELECT name FROM customer_view;'
+'CALL form_list ();'; +'CALL form_list ();';

View File

@ -11,6 +11,7 @@ Htk.ImageEditor = new Class
this.parent (props) this.parent (props)
this.builderInit (this.constructor.Xml); this.builderInit (this.constructor.Xml);
this.$('max-size').value = 10 /* MB */ * 1048576; this.$('max-size').value = 10 /* MB */ * 1048576;
this.$('form').action = '//'+ Vn.Config['image_host'] +'/rest.php?action=image'
} }
,onNameChange: function () ,onNameChange: function ()

View File

@ -3,10 +3,10 @@
<h2><t>UpdateImage</t></h2> <h2><t>UpdateImage</t></h2>
<form <form
method="post" method="post"
action="rest.php?action=image"
target="image-editor" target="image-editor"
enctype="multipart/form-data" enctype="multipart/form-data"
on-submit="onFormSubmit"> on-submit="onFormSubmit"
id="form">
<div class="form-group"> <div class="form-group">
<label for="name"><t>FileName</t></label> <label for="name"><t>FileName</t></label>
<input id="name" type="text" name="name" on-change="onNameChange"/> <input id="name" type="text" name="name" on-change="onNameChange"/>