From ea8e010c1df42e531cc28da6f31e586e89ee6c64 Mon Sep 17 00:00:00 2001 From: andi Date: Sat, 5 Feb 2005 20:14:09 +0100 Subject: summary check darcs-hash:20050205191409-9977f-8060d41d72f5a905ffffa9ae0513f41bd3df9947.gz --- script.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'script.js') diff --git a/script.js b/script.js index 239f94b07..db22d32b1 100644 --- a/script.js +++ b/script.js @@ -30,6 +30,22 @@ function escapeQuotes(text) { return text; } +/** + * Checks if a summary was entered - if not the style is changed + * + * @author Andreas Gohr + */ +function summaryCheck(){ + if(document.getElementById){ + var sum = document.getElementById('summary'); + if(sum.value == ''){ + sum.className='missing'; + }else{ + sum.className='edit'; + } + } +} + /** * This function generates the actual toolbar buttons with localized text * we use it to avoid creating the toolbar where javascript is not enabled -- cgit v1.2.3