Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv31663

Modified Files:
        List.js.jsp 
Log Message:
fade out the 'saved' message, so that you only see that if it recently happened


See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates


Index: List.js.jsp
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/List.js.jsp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- List.js.jsp 5 Jun 2008 15:12:01 -0000       1.13
+++ List.js.jsp 27 Jun 2008 15:23:19 -0000      1.14
@@ -13,7 +13,7 @@
  * The user does not need to push a commit button. All data is implicitely 
committed (after a few second of inactivity, or before unload).
  *
  * @author Michiel Meeuwissen
- * @version $Id: List.js.jsp,v 1.13 2008/06/05 15:12:01 michiel Exp $
+ * @version $Id: List.js.jsp,v 1.14 2008/06/27 15:23:19 michiel Exp $
  */
 
 
@@ -213,10 +213,15 @@
        (this.lastCommit == null || this.lastCommit.getTime() < 
this.lastChange.getTime());
 }
 
-List.prototype.status = function(message) {
+List.prototype.status = function(message, fadeout) {
     this.find(this.div, "span.status").each(function() {
+       $(this).fadeIn("fast");
        $(this).empty();
        $(this).append(message);
+       if (fadeout) {
+           var p = this;
+           $(this).fadeOut(4000, function() {$(p).empty()} );
+       }
     });
 }
 
@@ -243,7 +248,9 @@
                         url: 
"${mm:link('/mmbase/searchrelate/list/save.jspx')}",
                         data: params,
                         success: function() {
-                            self.status('<fmt:message key="saved" />');
+                            self.status('<fmt:message key="saved" />', true);
+
+
                         }
                      });
 
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to