Browse Source

fixing growl flash messages (they were not visible)

Aaron Newton 15 years ago
parent
commit
c2d35e139e

+ 2 - 2
desktop/core/static/css/desktop.css

@@ -358,7 +358,7 @@ input[type=submit] {
 
 /* growl */
 
-.ccs-shared .growl {
+.growl {
 	cursor: pointer;
 	position: absolute;
 	right: 0px;
@@ -379,7 +379,7 @@ input[type=submit] {
 	z-index: 100000;
 }
 
-.ccs-shared .growl:hover {
+.growl:hover {
 	opacity: 1;
 	filter: alpha(opacity=100);
 	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";

+ 2 - 2
desktop/core/static/js/Source/CCS/CCS.Desktop.FlashMessage.js

@@ -82,9 +82,9 @@ CCS.Desktop.flashMessage = function(message, duration, noCleanup){
 			right : 0,
 			bottom: b
 		}
-	}).inject(this.options.append);
+	}).inject(document.body);
 	//set a timeout to hide the message
-	timeout = cleanup.delay(duration || 4500);
+	if (!noCleanup) timeout = cleanup.delay(duration || 4500);
 	//return the cleanup function so that the code that called this method can optionally
 	//clean it before the timeout.
 	return cleanup;