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.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@ Vn.Photos = new Class
|
||||||
this.$('schema').value = 'catalog';
|
this.$('schema').value = 'catalog';
|
||||||
this.$('photo-size').value = 10 /* MB */ * 1048576;
|
this.$('photo-size').value = 10 /* MB */ * 1048576;
|
||||||
this.$('photo-id').focus ();
|
this.$('photo-id').focus ();
|
||||||
|
this.$('form').action =
|
||||||
|
'//'+ Vn.Config['image_host'] +'/hedera-web/rest.php?action=image';
|
||||||
}
|
}
|
||||||
|
|
||||||
,onFormSubmit: function ()
|
,onFormSubmit: function ()
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<form
|
<form
|
||||||
|
id="form"
|
||||||
method="post"
|
method="post"
|
||||||
enctype="multipart/form-data"
|
enctype="multipart/form-data"
|
||||||
action="rest.php?action=image"
|
|
||||||
target="photos-iframe"
|
target="photos-iframe"
|
||||||
on-submit="onFormSubmit">
|
on-submit="onFormSubmit">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -7,6 +7,8 @@ Htk.ImageEditor = new Class
|
||||||
{
|
{
|
||||||
this.builderInit (Htk.ImageEditor.Xml);
|
this.builderInit (Htk.ImageEditor.Xml);
|
||||||
this.$('max-size').value = 10 /* MB */ * 1048576;
|
this.$('max-size').value = 10 /* MB */ * 1048576;
|
||||||
|
this.$('form').action =
|
||||||
|
'//'+ Vn.Config['image_host'] +'/hedera-web/rest.php?action=image';
|
||||||
}
|
}
|
||||||
|
|
||||||
,onNameChange: function ()
|
,onNameChange: function ()
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<div id="main" class="htk-image-editor">
|
<div id="main" class="htk-image-editor">
|
||||||
<h2><t>UpdateImage</t></h2>
|
<h2><t>UpdateImage</t></h2>
|
||||||
<form
|
<form
|
||||||
|
id="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">
|
||||||
|
|
|
@ -62,7 +62,7 @@ Vn.Web =
|
||||||
this.conn.on ('loading-changed', this.onConnLoading, this);
|
this.conn.on ('loading-changed', this.onConnLoading, this);
|
||||||
// this.conn.open (null, null, null, this.connOpened.bind (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 production_domain, test_domain FROM config;'
|
||||||
+'SELECT name FROM customer_view;'
|
+'SELECT name FROM customer_view;'
|
||||||
+'CALL form_list ();';
|
+'CALL form_list ();';
|
||||||
|
|
Loading…
Reference in New Issue