mirror of
https://github.com/discourse/discourse.git
synced 2025-05-09 02:13:05 +08:00
FIX: You can't change a subject whilst Flagging
Meta: [You can't change a subject whilst Flagging](http://meta.discourse.org/t/you-can-t-change-a-subject-whilst-flagging/6887) This revert a change made by @eviltrout in b794830a259d0c76bf804227ab2653b4f9118eb6 in the `flag_view.js`. The `Em.run.schedule('afterRender', function() {...})` is apparently not enough. Had to schedule the event on the next run loop. Hopefully, the PR emberjs/ember.js#1235 will soon be merged in and we'll have a proper radio button control in Ember.js.
This commit is contained in:
parent
20e88f18ee
commit
f184090444
@ -35,7 +35,7 @@ Discourse.FlagView = Discourse.ModalBodyView.extend({
|
||||
this.set('postActionTypeId', action.id);
|
||||
this.set('isCustomFlag', action.is_custom_flag);
|
||||
this.set('selected', action);
|
||||
Em.run.schedule('afterRender', function() {
|
||||
Em.run.next(function() {
|
||||
$('#radio_' + action.name_key).prop('checked', 'true');
|
||||
});
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user