Skip to content

Commit

Permalink
[push] ignore clicks inside calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen committed Nov 27, 2015
1 parent 6669955 commit 6e49bfc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/push/frontend/public/javascripts/countly.views.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,11 @@ var PushPopup = function(message, duplicate, dontReplaceApp) {
content.find('.view-date .view-value').text(message.date ? moment(message.date).format(fmt) : '');
content.find('.view-sent .view-value').text(message.sent ? moment(message.sent).format(fmt) : '');
} else {
var hidePicker = function(){
//ignore clicks inside calendar
content.find(".date-picker-push").click(function(e){
e.stopPropagation();
});
var hidePicker = function(e){
$(document.body).off('click', hidePicker);
content.find(".date-picker-push").hide();
};
Expand Down

0 comments on commit 6e49bfc

Please sign in to comment.