Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

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

  • bussie
  • bussie's Avatar Topic Author
  • New Member
  • New Member
More
IP: 143.176.56.23 13 years 5 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
More
IP: 85.168.78.72 13 years 5 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.