return false, also when delete cannot be executed
authorJoey Schulze <joey@infodrom.org>
Thu, 13 May 2010 19:29:26 +0000 (21:29 +0200)
committerJoey Schulze <joey@infodrom.org>
Thu, 13 May 2010 19:29:26 +0000 (21:29 +0200)
lib/functions.js

index 32b7116..fcc04cc 100644 (file)
@@ -189,7 +189,7 @@ function form_delete(obj)
 {
     var id = document.getElementById('edit_id');
 
-    if (!id.value.length) return;
+    if (!id.value.length) return false;
 
     var source = document.getElementById('edit_source');
     info('');