News:

Support the VirtueMart project and become a member

Main Menu

Bug in adminui.php or in calling it.

Started by neo314, May 24, 2013, 09:17:45 AM

Previous topic - Next topic

neo314

I made a link in Joomla 2.5 using the latest VM 2.0.20b (did I get that right), and I made an Account Maintenance link on the front end. The result breaks the site due to a Javascript error, and I can see that a declaration to call the function vm2admin is added, but the javascript file is not getting added.

I'm logged in as the superuser admin.

<script src="/inc/jQuery/jquery.min.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmsite.js" type="text/javascript"></script>
<script src="/components/com_virtuemart/assets/js/vmtabs.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/facebox.js" type="text/javascript"></script>
  <script src="/components/com_virtuemart/assets/js/vmprices.js" type="text/javascript"></script>

****   NO REFERENCE TO VM2ADMIN.JS IN THE INCLUDED SCRIPTS ABOVE ****

  <script type="text/javascript">
//<![CDATA[
jQuery( function($) {
$("select.virtuemart_country_id").vm2front("list",{dest : "#virtuemart_state_id",ids : "38"});
});
//]]>

window.addEvent('domready', function(){ $$('dl.tabs').each(function(tabs){ new JTabs(tabs, {}); }); });
//<![CDATA[

jQuery(document).ready(function(){ jQuery('#ImagesContainer').vm2admin('media','vendor','0') });  <= CALL TO VM2ADMIN HERE
jQuery(document).ready(function($){
var medialink = 'index.php?option=com_virtuemart&vie