[Mobile] Fix Bug 48004
This commit is contained in:
parent
b9baf6f469
commit
831933bc87
|
@ -893,6 +893,7 @@ define([
|
|||
});
|
||||
mainView.hideNavbar();
|
||||
} else {
|
||||
if (!me.openModal) {
|
||||
me.modalViewComment = uiApp.popover(
|
||||
'<div class="popover container-view-comment">' +
|
||||
'<div class="popover-inner">' +
|
||||
|
@ -903,7 +904,7 @@ define([
|
|||
);
|
||||
this.picker = $$(me.modalViewComment);
|
||||
var $overlay = $('.modal-overlay');
|
||||
|
||||
me.openModal = true;
|
||||
$$(this.picker).on('opened', function () {
|
||||
$overlay.on('removeClass', function () {
|
||||
if (!$overlay.hasClass('modal-overlay-visible')) {
|
||||
|
@ -914,8 +915,10 @@ define([
|
|||
$overlay.off('removeClass');
|
||||
$overlay.removeClass('modal-overlay-visible');
|
||||
$('.popover').remove();
|
||||
me.openModal = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment);
|
||||
$('.prev-comment').single('click', _.bind(me.onViewPrevComment, me));
|
||||
$('.next-comment').single('click', _.bind(me.onViewNextComment, me));
|
||||
|
|
Loading…
Reference in a new issue