You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by ke...@apache.org on 2018/01/10 21:47:16 UTC
allura git commit: Flash message positioning moved CSS
Repository: allura
Updated Branches:
refs/heads/kt/fixed_flash_msgs [created] bd617e35d
Flash message positioning moved CSS
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/bd617e35
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/bd617e35
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/bd617e35
Branch: refs/heads/kt/fixed_flash_msgs
Commit: bd617e35d475e6e3f1eda05734353ba049cb2edb
Parents: 8031ba7
Author: Kenton Taylor <kt...@slashdotmedia.com>
Authored: Wed Jan 10 21:34:48 2018 +0000
Committer: Kenton Taylor <kt...@slashdotmedia.com>
Committed: Wed Jan 10 21:34:48 2018 +0000
----------------------------------------------------------------------
Allura/allura/nf/allura/css/site_style.css | 2 +-
Allura/allura/public/nf/js/jquery.notify.js | 15 +++++++--------
2 files changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/bd617e35/Allura/allura/nf/allura/css/site_style.css
----------------------------------------------------------------------
diff --git a/Allura/allura/nf/allura/css/site_style.css b/Allura/allura/nf/allura/css/site_style.css
index e7d5e65..6a505a9 100644
--- a/Allura/allura/nf/allura/css/site_style.css
+++ b/Allura/allura/nf/allura/css/site_style.css
@@ -607,7 +607,7 @@ img.nav-logo {
/* message */
#messages {
- position: absolute;
+ position: fixed;
z-index: 100000;
top: 50px;
right: 20px;
http://git-wip-us.apache.org/repos/asf/allura/blob/bd617e35/Allura/allura/public/nf/js/jquery.notify.js
----------------------------------------------------------------------
diff --git a/Allura/allura/public/nf/js/jquery.notify.js b/Allura/allura/public/nf/js/jquery.notify.js
index 8478dc0..27eb388 100644
--- a/Allura/allura/public/nf/js/jquery.notify.js
+++ b/Allura/allura/public/nf/js/jquery.notify.js
@@ -21,7 +21,7 @@
/*global jQuery, window */
(function ($) {
-
+
/* BEGIN: John Resig's microtemplating stuff */
var cache = {};
@@ -91,11 +91,11 @@
}
helper();
}
-
+
function sanitize(str) {
return str.replace(/</g, '<').replace(/>/g, '>');
}
-
+
$.fn.notifier = function(options){
var opts = $.extend({}, $.fn.notify.defaults, options);
return $(this).each(function() {
@@ -104,13 +104,13 @@
if (o.scrollcss) {
$(window).scroll(function() {
$(self).css(o.scrollcss);
- });
+ });
}
$('.' + o.messageClass, self).addClass(o.newClass);
scanMessages(self, o);
});
};
-
+
$.fn.notify = function(msg_or_opts, options) {
var opts;
// For backwards compatibility
@@ -145,7 +145,7 @@
}
});
};
-
+
$.fn.notify.defaults = {
status: 'info',
interval: 500,
@@ -154,7 +154,6 @@
title: '',
sanitize: true,
tmpl: '<div class="message <%=newClass%> <%=status%> <% if (sticky) { %><%=stickyClass %><% } %>" data-timer="<%=timer%>"><% if (title) { %><h6><%=title%></h6><% } %><div class="content"><%=message%></div></div>',
- scrollcss: { position: 'fixed', top: '20px' },
stickyClass: 'notify-sticky',
persistentClass: 'notify-persistent',
persistentCookie: 'notify-persistent-closed',
@@ -164,5 +163,5 @@
messageClass: 'message',
closeIcon: '<b title="Close" class="fa fa-close" style="float:right;"></b>'
};
-
+
}(jQuery));