diff options
author | andi <andi@splitbrain.org> | 2005-02-05 20:14:09 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-02-05 20:14:09 +0100 |
commit | ea8e010c1df42e531cc28da6f31e586e89ee6c64 (patch) | |
tree | 8b8c06cd97e6e59e08fe2cd1d1ed91ce7e8a4bb0 /script.js | |
parent | 7c5a70ebd1f751fba892e3cb87aea7eb92562e0a (diff) | |
download | rpg-ea8e010c1df42e531cc28da6f31e586e89ee6c64.tar.gz rpg-ea8e010c1df42e531cc28da6f31e586e89ee6c64.tar.bz2 |
summary check
darcs-hash:20050205191409-9977f-8060d41d72f5a905ffffa9ae0513f41bd3df9947.gz
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -31,6 +31,22 @@ function escapeQuotes(text) { } /** + * Checks if a summary was entered - if not the style is changed + * + * @author Andreas Gohr <andi@splitbrain.org> + */ +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 */ |