[FIX] website_mass_mailing: snippet animation does not toggleClass for subrscribe button. When the user click on edit snippet editor does not start animation with editable_mode true
This commit is contained in:
parent
77a47a9bee
commit
177a08832c
|
@ -20,10 +20,8 @@
|
||||||
self.$target.find('a.js_subscribe_btn')
|
self.$target.find('a.js_subscribe_btn')
|
||||||
.attr("disabled", data.is_subscriber && data.email.length ? "disabled" : false);
|
.attr("disabled", data.is_subscriber && data.email.length ? "disabled" : false);
|
||||||
self.$target.removeClass("hidden");
|
self.$target.removeClass("hidden");
|
||||||
if (data.is_subscriber) {
|
self.$target.find('.js_subscribe_btn').toggleClass('hidden', !!data.is_subscriber);
|
||||||
self.$target.find('.js_subscribe_btn').addClass('hidden');
|
self.$target.find('.js_subscribed_btn').toggleClass('hidden', !data.is_subscriber);
|
||||||
self.$target.find('.js_subscribed_btn').removeClass('hidden');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// not if editable mode to allow designer to edit alert field
|
// not if editable mode to allow designer to edit alert field
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
website.snippet.stop_animation();
|
website.snippet.stop_animation();
|
||||||
this.on('rte:ready', this, function () {
|
this.on('rte:ready', this, function () {
|
||||||
self.snippets.$button.removeClass("hidden");
|
self.snippets.$button.removeClass("hidden");
|
||||||
website.snippet.start_animation();
|
website.snippet.start_animation(true);
|
||||||
$("#wrapwrap *").off('mousedown mouseup click');
|
$("#wrapwrap *").off('mousedown mouseup click');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue