summaryrefslogtreecommitdiff
path: root/script.js
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-05 20:14:09 +0100
committerandi <andi@splitbrain.org>2005-02-05 20:14:09 +0100
commitea8e010c1df42e531cc28da6f31e586e89ee6c64 (patch)
tree8b8c06cd97e6e59e08fe2cd1d1ed91ce7e8a4bb0 /script.js
parent7c5a70ebd1f751fba892e3cb87aea7eb92562e0a (diff)
downloadrpg-ea8e010c1df42e531cc28da6f31e586e89ee6c64.tar.gz
rpg-ea8e010c1df42e531cc28da6f31e586e89ee6c64.tar.bz2
summary check
darcs-hash:20050205191409-9977f-8060d41d72f5a905ffffa9ae0513f41bd3df9947.gz
Diffstat (limited to 'script.js')
-rw-r--r--script.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/script.js b/script.js
index 239f94b07..db22d32b1 100644
--- a/script.js
+++ b/script.js
@@ -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
*/