User Control Panel - modal class "edit address"

  • Posts: 57
  • Thank you received: 5
11 years 5 months ago #103418

Hi,

I need to remove the "class=modal" from "hikashop_new_address_popup". Since I am using T3 framework that is build using bootstrap, it acquires the modal class from bootstrap resulting in misplaced positioning of the edit image and "new" link.

I can't figure out how the modal class is applied. I am looking to edit the listing view and I narrowed it down to this line of code which I believe is what i need to edit.

<?php echo $this->popup->display('<img src="'. HIKASHOP_IMAGES.'edit.png" alt="'. JText::_('HIKA_EDIT').'" />','HIKA_EDIT',
hikashop_completeLink('address&task=edit&address_id='.$address->address_id.'&Itemid='.$Itemid,true),
'hikashop_edit_address_popup_'.$address->address_id, 760, 480, '', '', 'link');
?>


Am I looking at the wrong file because I can't see where in the code above the modal class is applied.

Here is the output from firebug:

<a rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="/index.php/profile/address/add/tmpl-component" id="hikashop_new_address_popup" class="modal"><span title="New" class="icon-32-new"></span>New</a>

Kind Regards,

Drago

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #103426

Hi,

It is added by the file administrator/components/com_hikashop/helper/popup.php with this line:
$a = $this->getAttr($attr,'modal');

Please Log in or Create an account to join the conversation.

  • Posts: 57
  • Thank you received: 5
11 years 5 months ago #103438

Thanks,

Now I see, however I just commented out the modal class from bootstrap, since the modal class in hikashop is used with javascript/jquery to trigger the modal windows.
Commenting the modal class out from bootstrap seems like the lesser evil to me since I don't fancy modal windows opening in a new page.

Thanks again for your help

Please Log in or Create an account to join the conversation.

Time to create page: 0.036 seconds
Powered by Kunena Forum