From 95275f7bb1c55f01abedde25b37aaedefdece618 Mon Sep 17 00:00:00 2001 From: Bernard Labno Date: Tue, 13 Dec 2011 08:50:07 +0000 Subject: [PATCH] Fixed problem with clearing watermarks on ajax form submit and not restoring them afterwards. --- src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js b/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js index 35f2722..68f3feb 100755 --- a/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js +++ b/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js @@ -5,4 +5,10 @@ RichFaces.Watermark = function(targetId, text, options) { jQuery(function() { jQuery(document.getElementById(targetId)).watermark(text, options); }); -}; \ No newline at end of file +}; +RichFaces.Watermark.showAll = function() { + jQuery.watermark.showAll(); +}; +A4J.AJAX.AddListener({onafterajax:function() { + RichFaces.Watermark.showAll(); +}}); \ No newline at end of file -- libgit2 0.24.0