Skip to content
Snippets Groups Projects

Issue #3333559 by yustinTR, lonalore, Tushar1, TR, mrinalini9, noorulshameera:...

4 files
+ 15
12
Compare changes
  • Side-by-side
  • Inline

Files

+ 3
3
@@ -3,7 +3,7 @@
* Attaches fivestar rating.
*/
(function ($, Drupal) {
(function ($, Drupal, once) {
Drupal.behaviors.fiveStarRating = {
attach: function (context, settings) {
$('body').find('.fivestar').each(function () {
@@ -36,9 +36,9 @@
},
};
$this.find('select').once('processed').barrating('show', options);
$(once('processed', 'select', this)).barrating('show', options);
$this.find('[type=submit]').hide();
});
}
};
})(jQuery, Drupal);
})(jQuery, Drupal, once);
Loading