- Posts: 57
- Thank you received: 5
User Control Panel - modal class "edit address"
13 years 6 months ago #103418
by Hristov
User Control Panel - modal class "edit address" was created by Hristov
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
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.
13 years 6 months ago #103426
by nicolas
Replied by nicolas on topic User Control Panel - modal class "edit address"
Hi,
It is added by the file administrator/components/com_hikashop/helper/popup.php with this line:
$a = $this->getAttr($attr,'modal');
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.
13 years 6 months ago #103438
by Hristov
Replied by Hristov on topic User Control Panel - modal class "edit address"
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
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.045 seconds