Hi all,
after the upgrade to 3.4 and later to 3.4.1 I have experienced that "Save and close" and "Save" buttons doesn't work in VM backend? All other buttons works fine, but for some reason this doesn't?
Has anyone experienced similar thing?
After debugging found some errors... attached.
J3.8.12
VM3.4 or 3.4.1
cleared your browser cache?
Checked for JS errors ?
Yes of course, cache cleared few times. JS error, shown in my first post.
myValidator isn't being found
if(!$done[$validate]){
if($validate){
vmJsApi::vmValidator();
$form = "if( (a=='apply' || a=='save') && myValidator(form,false)){
form.submit();
} else if(a!='apply' && a!='save'){
form.submit();
}";
is vmJsApi::vmValidator(); working?
http://x.com/media/system/js/validate.js?e2ad1d21f7ea812dad5dc0f6d0b8dc9a loaded?
I think I have resolved this now...
as I'm using template override, there is a folder templates/site/com_virtuemart/assets/js which contains all files from previous version. Now I have copied fresh new JS files from components/com_virtuemart/assets/js folder into my template folder and everything works fine.
I'll check if I can delete JS folder from my template folder. Hopefully, all scripts will be pulled from coponents/com_virtuemart folder.