0

I'm using a plugin for star ratings: raty

It has a path option where you can set your path to find your star images. I was wondering if jQuery allows multiple paths to be set or does it only work if the plugin has defined the ability?

for instance in the plugin, you'd normally do:

  $('.stars').raty
    readOnly: true
    path: '../assets'

Can you do something like this:

  $('.stars').raty
    readOnly: true
    path: ['../assets', '../../assets']

or something? Obviously this array doesn't work. The hack I did was just to change the class, but was curious if its possible to do it without changing class.

Barmar
  • 741,623
  • 53
  • 500
  • 612
hellomello
  • 8,219
  • 39
  • 151
  • 297
  • jQuery has nothing to do with it. This is part of the design of the plugin, not something jQuery does. So check the raty documentation to see what it allows there. Also, you seem to be missing some parentheses and braces around the options. – Barmar Oct 29 '13 at 06:04
  • @Barmar thanks, thats what I wanted to hear. No, I'm not missing parentheses. I'm using coffee script – hellomello Oct 29 '13 at 06:29
  • You should put that in your tag or question text to avoid confusing readers. – Barmar Oct 29 '13 at 06:32

0 Answers0