Tweaks for better modal distinction between fixed/inline
This commit is contained in:
@@ -4,7 +4,7 @@ export default Ember.Component.extend({
|
||||
didInsertElement() {
|
||||
this._super();
|
||||
$('#modal-alert').hide();
|
||||
$('.d-modal').modal('show');
|
||||
$('.d-modal.fixed-modal').modal('show');
|
||||
Ember.run.scheduleOnce('afterRender', this, this._afterFirstRender);
|
||||
this.appEvents.on('modal-body:flash', msg => this._flash(msg));
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export default Ember.Component.extend({
|
||||
didInsertElement() {
|
||||
this._super();
|
||||
$('.d-modal').modal('hide').addClass('hidden');
|
||||
$('.d-modal.fixed-modal').modal('hide').addClass('hidden');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -121,11 +121,11 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, {
|
||||
user clicks "No", reopenModal. If user clicks "Yes", be sure to call closeModal.
|
||||
**/
|
||||
hideModal() {
|
||||
$('.d-modal').modal('hide');
|
||||
$('.d-modal.fixed-modal').modal('hide');
|
||||
},
|
||||
|
||||
reopenModal() {
|
||||
$('.d-modal').modal('show');
|
||||
$('.d-modal.fixed-modal').modal('show');
|
||||
},
|
||||
|
||||
editCategory(category) {
|
||||
|
||||
Reference in New Issue
Block a user