settings.js 884 B

1234567891011121314151617181920212223242526272829303132333435
  1. (function($){
  2. /**
  3. * Use this file to register a module helper that
  4. * adds additional logic to the settings form. The
  5. * method 'FLBuilder._registerModuleHelper' accepts
  6. * two parameters, the module slug (same as the folder name)
  7. * and an object containing the helper methods and properties.
  8. */
  9. FLBuilder._registerModuleHelper("pp-star-rating", {
  10. /**
  11. * The 'rules' property is where you setup
  12. * validation rules that are passed to the jQuery
  13. * validate plugin (http://jqueryvalidation.org).
  14. *
  15. * @property rules
  16. * @type object
  17. */
  18. rules: {
  19. rating: {
  20. number: true
  21. }
  22. },
  23. /**
  24. * The 'init' method is called by the builder when
  25. * the settings form is opened.
  26. *
  27. * @method init
  28. */
  29. init: function() {}
  30. });
  31. })(jQuery);