1

I'm building a safecracker frontend form that allow members to update certain objects. This form uses a matrix field for managing opening hours of shops

The matrix field displays fine and existing data can be update without any problem. However the '+' sign does not seem to work to add new rows.

It believe it is a javascript problem as the console show

Uncaught TypeError: Object [object Object] has no method 'markItUp' 

What can be wrong?

rg,

Tim

1 Answer 1

2

You're probably including jquery twice on the same page. Use safecracker's include_jquery="no" parameter. Also, be sure to include jQuery before any safecracker code. If you want to place all scripts at the bottom of the body, you can use Stash to grab the {safecracker_head} variable and place it wherever you like.

https://github.com/croxton/Stash/

1
  • Stupid me... you are 100% right, I'm including jquery twice. May 9, 2013 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.