Skip to content

Commit

Permalink
message MDL-22320 moved the new message notification to the bottom ri…
Browse files Browse the repository at this point in the history
…ght corner of the screen
  • Loading branch information
Andrew Davis committed Jun 30, 2010
1 parent 3788900 commit 78e873c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions message/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,22 @@ M.core_message.init_notification = function(Y, title, content, url) {
var o = new Y.Overlay({
headerContent : title,
bodyContent : content,
centered : true
//centered : true
});
o.render(Y.one(document.body));
Y.one('#buttondontreadmessage').on('click', o.hide, o);
Y.one('#buttonreadmessage').on('click', function() {

//align the bottom right corner of the overlay with the bottom right of the viewport
o.set("align", {
points:[Y.WidgetPositionAlign.BR, Y.WidgetPositionAlign.BR]
});

Y.one('#notificationyes').on('click', function(e) {
window.location.href = url;
}, o);
Y.one('#notificationno').on('click', function(e) {
o.hide();
e.preventDefault();
return false;
}, o);
});
}

0 comments on commit 78e873c

Please sign in to comment.