summaryrefslogtreecommitdiff
path: root/script.js
diff options
context:
space:
mode:
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
*/