Host de imagenes en parametro de configuracion
This commit is contained in:
parent
0840e4e947
commit
578136e4d7
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.215-deb8) stable; urgency=low
|
||||
hedera-web (1.217-deb8) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 ();';
|
||||
|
|
Loading…
Reference in New Issue