You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@YanNerio I'm trying to enable/disable the rating bar on the fly. I have the following function, that should initialize the rating plugin as either enabled/disabled:
function initRatingWithState($, options, state){
if ($.children().length) $.empty();
const init = $.data('init');
if (typeof init === 'number') options.initialRating = parseInt(init);
options.disabled = state;
$.emotionsRating(options);
}
It works perfectly when initializing the plugin the first time. All 'on-the-fly' changes do not work. Where am I going wrong?
EDIT: It doesn't work via the console, either.
The text was updated successfully, but these errors were encountered:
@YanNerio I'm trying to enable/disable the rating bar on the fly. I have the following function, that should initialize the rating plugin as either enabled/disabled:
It works perfectly when initializing the plugin the first time. All 'on-the-fly' changes do not work. Where am I going wrong?
EDIT: It doesn't work via the console, either.
The text was updated successfully, but these errors were encountered: