Host de imagenes en parametro de configuracion

This commit is contained in:
Juan Ferrer Toribio 2015-09-24 00:35:17 +02:00
parent 0840e4e947
commit 578136e4d7
6 changed files with 8 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.215-deb8) stable; urgency=low
hedera-web (1.217-deb8) stable; urgency=low
* Initial Release.

View File

@ -8,6 +8,8 @@ Vn.Photos = new Class
this.$('schema').value = 'catalog';
this.$('photo-size').value = 10 /* MB */ * 1048576;
this.$('photo-id').focus ();
this.$('form').action =
'//'+ Vn.Config['image_host'] +'/hedera-web/rest.php?action=image';
}
,onFormSubmit: function ()

View File

@ -6,9 +6,9 @@
</div>
<div class="body">
<form
id="form"
method="post"
enctype="multipart/form-data"
action="rest.php?action=image"
target="photos-iframe"
on-submit="onFormSubmit">
<div class="form-group">

View File

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

View File

@ -2,8 +2,8 @@
<div id="main" class="htk-image-editor">
<h2><t>UpdateImage</t></h2>
<form
id="form"
method="post"
action="rest.php?action=image"
target="image-editor"
enctype="multipart/form-data"
on-submit="onFormSubmit">

View File

@ -62,7 +62,7 @@ Vn.Web =
this.conn.on ('loading-changed', this.onConnLoading, this);
// this.conn.open (null, null, null, this.connOpened.bind (this));
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 ();';