0
1
Fork 0

Errores arreglados

This commit is contained in:
Juan Ferrer Toribio 2015-03-07 01:56:24 +01:00
parent d87695fd99
commit fe120f5196
11 changed files with 25 additions and 21 deletions

View File

@ -1,5 +1,5 @@
Package: hedera-web
Version: 1.0-36
Version: 1.0-40
Architecture: all
Maintainer: Juan Ferrer Toribio <juan@verdnatura.es>
Depends: apache2, php5-mysql, php-vn-web

View File

@ -21,6 +21,8 @@ Vn.Photos = new Class
,onImageUpload: function (iframe)
{
var toast = new Htk.Toast ();
this.gui.loaderPop ();
this.$('submit').disabled = false;
@ -32,10 +34,10 @@ Vn.Photos = new Class
{
this.$('photo-id').value = '';
this.$('photo-id').focus ();
alert (_('ImageUploaded'));
toast.showMessage (_('ImageUploaded'));
}
else
alert (response.error.message +' ('+ response.error.code +')');
toast.showError (response.error.message +' ('+ response.error.code +')');
}
catch (e) {}
}

View File

@ -136,7 +136,7 @@ Vn.Catalog = new Class
{
event.stopPropagation ();
this.gui.showBackground ();
this.$('catalog-menu').style.display = 'block';
this.$('menu').style.display = 'block';
this.hideMenuCallback = this.hideMenu.bind (this);
document.addEventListener ('click', this.hideMenuCallback);
}
@ -144,7 +144,7 @@ Vn.Catalog = new Class
,hideMenu: function ()
{
this.gui.hideBackground ();
this.$('catalog-menu').style.display = 'none';
this.$('menu').style.display = 'none';
document.removeEventListener ('click', this.hideMenuCallback);
this.hideMenuCallback = null;
}

View File

@ -1,13 +1,13 @@
#catalog-menu-button
.catalog button.menu
{
display: block;
}
#catalog-menu
.catalog div.menu
{
display: none;
}
#catalog-center
.catalog div.center
{
right: 0;
}

View File

@ -5,7 +5,7 @@
height: 100%;
min-height: 25em;
}
.catalog .center
.catalog div.center
{
position: absolute;
top: 0;
@ -16,7 +16,7 @@
/* Main */
.catalog .main
.catalog div.main
{
position: absolute;
top: 0;
@ -26,7 +26,7 @@
overflow: auto;
padding: 1em;
}
.catalog .main .box
.catalog div.main .box
{
margin: 0 auto;
min-width: 52em;
@ -90,7 +90,7 @@
/* Menu */
.catalog .menu
.catalog div.menu
{
position: absolute;
z-index: 20;

View File

@ -68,10 +68,14 @@ Vn.Orders = new Class
,debtConditionalFunc: function (field, value)
{
var className = 'debt-amount ';
if (value > 0)
field.node.className = 'positive-debt';
className += 'positive-debt';
else
field.node.className = 'negative-debt';
className += 'negative-debt';
field.node.className = className;
}
,onPayButtonClick: function ()

View File

@ -29,7 +29,7 @@
<h1><t>ConfirmedOrdersDesc</t></h1>
<div class="debt">
<t>PendingBalance:</t>
<htk-label format="%.2d€" id="debt-amount" class="debt-amount">
<htk-label format="%.2d€" id="debt-amount">
<db-calc-sum model="balance" column-name="amount"/>
</htk-label>
<img src="image/dark/info.svg" title="_PaymentInfo" class="debt-info" alt="Info"/>

View File

@ -14,7 +14,7 @@ Vn.Ticket = new Class
{
var report = window.open ('', 'report',
'resizable=yes,height=600,width=750,scrollbars=yes,menubar=no');
report.document.body.innerHTML = document.getElementById ('ticket-report').innerHTML;
report.document.body.innerHTML = this.$('report').innerHTML;
report.print ();
}

View File

@ -29,7 +29,7 @@
</button>
</div>
</div>
<div id="ticket-report">
<div id="report">
<table class="form">
<tbody>
<tr>

View File

@ -97,7 +97,7 @@ class Web
**/
static function getVersion ()
{
return (int) filemtime (__FILE__);
return (int) filectime (__FILE__);
}
static function login ()

View File

@ -56,8 +56,6 @@ class Service
static function errorHandler ($code, $message, $file, $line, $context)
{
self::setError ('PHP', 'error', "$file:$line:$message");
self::sendReply ();
return TRUE;
}