Page 1 of 2

Obliterate button missing

Posted: 14 Nov 2010, 15:12
by boskoff
Hi,

I tested the new addon for invoices 1.0.0 on a database which contained some data created by the previous version. I uninstalled the old one and after this I installed 1.0.0. With the old data everything was OK.

I wanted to start the numeration of invoices from 1 so I deleted the vm_bill, vm_deliveries and vm_delivery_item tables from database. Using phocainstall I created the tables again with no data in. Unfortunately after I did it the "obliterate" button disspareard.

Image

The addon is working well I have icons to create invoice and delivery doc. Only the obliterate is missing... :x :x :x

Any idea what I did wrong?

Re: Obliberate button missing

Posted: 16 Nov 2010, 19:27
by Jan
Hi, seems like there is some problem with path to the image, try to see the html code of the table, e.g. if there is no wrong path to image, etc.

Jan

Re: Obliterate button missing

Posted: 17 Nov 2010, 09:01
by boskoff
Hi Jan,

Thanks for the reply.
i checked the image. It's there where it shoud be. The page source tells:

Code: Select all

<td align="center"><a href="http://mywebsite.com/administrator/index.php?page=order.order_print&order_id=204&func=obliterateDelivery&delivery_id=4&delivery_pane=1&option=com_virtuemart&vmtoken=mytokenhere" onclick="return confirm('Czy na pewno usunąć dostawę? (Dokument dostawy: 00000004)');"<img src="/administrator/components/com_phocapdf/assets/images/icon-16-vm-trash.png" alt="Usuń" name="obliterate4" title="Usuń 00000004" border="0" /></a></td>
and ps_order_delivery.php contains this:

Code: Select all

. Jhtml::_('image', 'administrator/components/com_phocapdf/assets/images/icon-16-vm-trash.png', JText::_('PLG_PHOCAPDF_VM_DELIVERY_OBLITERATE'), array('name' => 'obliterate'. $db->f('delivery_id'), 'title' => JText::_('PLG_PHOCAPDF_VM_DELIVERY_OBLITERATE') . ' '. sprintf("%08d",$db->f('delivery_id')) , 'border' => '0'))
It seems there's nothing wrong in the code... :x

The image icon-16-vm-tash.png is in the folder.
PFD icons are dispayed without any problem and this is the same table with the obliterate button...

What I can check more?

Re: Obliterate button missing

Posted: 18 Nov 2010, 17:13
by DragonJoli
Same here :(
And the E-mail button doesn't show either (I upgraded for that e-mail function....) :(

Re: Obliterate button missing

Posted: 18 Nov 2010, 20:24
by DragonJoli
Just tried in Firefox : the obliterate button appears... I usually use IE, so.... :/
But the mail button doesn't appear even in FF...

Re: Obliterate button missing

Posted: 18 Nov 2010, 21:20
by boskoff
DragonJoli wrote:Just tried in Firefox : the obliterate button appears... I usually use IE, so.... :/
But the mail button doesn't appear even in FF...
I thought it's a joke - but it is browser dependent!
I have the obliterate button when using FF. It does not display in Chrome, Opera and IE!!
In Opera there is a tiny space in the center of the table cell which can be clicked t obliterate an invoice, there's no such area in Chrome and IE... :x :x :x

Anybody has an idea what to do? Maybe define cell size?

Re: Obliterate button missing

Posted: 18 Nov 2010, 22:17
by DragonJoli
I can't believe we are the only ones using IE :D

Re: Obliterate button missing

Posted: 19 Nov 2010, 19:33
by boskoff
DragonJoli wrote:I can't believe we are the only ones using IE :D
I don't use IE on a daily basis. Chrome is no 1 then FF and Opera... :)

Re: Obliterate button missing

Posted: 21 Nov 2010, 00:24
by Jan
Hi, just check the path to the image. But if it works in FF, then there should not be a problem with a path :idea:

Re: Obliterate button missing

Posted: 21 Nov 2010, 01:37
by boskoff
Jan wrote:Hi, just check the path to the image. But if it works in FF, then there should not be a problem with a path :idea:
Jan, the path to the image is the right one. The image is there as well. The only difference is that in all browser except FF the image is not shown. Opera is an exception - it does not show the image but there's a very little click-able area in the cell, the click starts the obliterate action.

The image is in the right folder. I tried to change it into another image, change size of the cell etc. Nothing works... :x :x :x

There's also some tiny differences how the delivery table is displayed:
in chrome:
Image
and FF:
Image