[Jifty-commit] r1525 - in jifty/trunk: share/web/static/js
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jul 10 19:02:02 EDT 2006
Author: trs
Date: Mon Jul 10 19:02:01 2006
New Revision: 1525
Modified:
jifty/trunk/ (props changed)
jifty/trunk/share/web/static/js/jifty.js
Log:
r14143 at zot: tom | 2006-07-10 19:01:46 -0400
Wrap the popup notification div in dropshadow wrapper hooks
Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js (original)
+++ jifty/trunk/share/web/static/js/jifty.js Mon Jul 10 19:02:01 2006
@@ -800,17 +800,28 @@
var node = document.createElement('div');
var node_id = 'result-' + moniker;
node.setAttribute('id', node_id);
- node.setAttribute('class', 'result-' + status);
+ node.setAttribute('class', 'popup_notification result-' + status);
node.innerHTML = text;
+
+ var wrap1 = document.createElement("div");
+ wrap1.setAttribute("class", "dropshadow_wrap1");
+ var wrap2 = document.createElement("div");
+ wrap2.setAttribute("class", "dropshadow_wrap2");
+ var wrap3 = document.createElement("div");
+ wrap3.setAttribute("class", "dropshadow_wrap3");
+
+ wrap1.appendChild(wrap2);
+ wrap2.appendChild(wrap3);
+ wrap3.appendChild(node);
if(popup.hasChildNodes()) {
- popup.insertBefore(node, popup.firstChild);
+ popup.insertBefore(wrap1, popup.firstChild);
} else {
- popup.appendChild(node);
+ popup.appendChild(wrap1);
}
setTimeout(function () {
- new Effect.Fade(node, {duration: 3.0});
+ new Effect.Fade(wrap1, {duration: 3.0});
}, 3500);
}
More information about the Jifty-commit
mailing list