Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file TypeError: $(...).vm2admin is not a function

More
10 years 11 months ago #2273 by bussie
Hello first of all thanks for your great extension,
did a lot of good for me!

I have k2 2.66, k2mart2.0.5 and vm 2.020b installed and i can not delete vm custum fields in products in the backend. on this particular page I get;

TypeError: jQuery(...).chosen is not a function
jQuery('select#customlist').chosen().change(function() {

TypeError: b.fancybox.init is not a function
...art:function(){},onCancel:function(){},onComplete:function(){},onCleanup:functio...

on other pages I get;
TypeError: $(...).vm2admin(...).find(...).chosen is not a function
...ect').chosen({enable_select_all: true,select_all_text : vm2string.select_all_tex...

TypeError: $K2mart(...).chosen is not a function
$K2mart('.vmForm select').chosen();

Can you (easy jquery) help me to deal with these errors?
I hoop to hear from you soon

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

More
10 years 11 months ago #2275 by admin
Hello,

jQuery Easy cannot fix all possible situations out of the box and as far as I can tell you will need to make some changes manually to make it work here. I must stress that messing with the backend is rather complicated and may render your administration side un-responsible.

One issue you are having here is that the jQuery code is using '$' for variables. I am not sure if it is appropriate or not here, I would have to see the full source code.

Also, make sure there are not missing libraries that jQuery Easy would have cleaned up and that should remain. Compare the code before and after the use of the plugin.

Olivier.

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