]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Form validation updated.
authorWill Budic <redacted>
Tue, 18 Feb 2020 08:50:10 +0000 (19:50 +1100)
committerWill Budic <redacted>
Tue, 18 Feb 2020 08:50:10 +0000 (19:50 +1100)
dbLifeLog/main.cnf
htdocs/cgi-bin/wsrc/main.js

index 5686d79a0749d4640ff5d2ecd14c8847bee179c5..94c58de4ef51cf9473584874a812d3209cb13739 100644 (file)
@@ -1,11 +1,12 @@
 
+!CNF1.0
 This is the main configuration file for the LifeLog applications settings.
 https://github.com/wbudic/LifeLog
 This is an Open Source License project -> https://choosealicense.com/licenses/isc/
 Credential format:<<AUTO_LOGIN <{alias}/{password}> , dont enable here using AUTO_LOGIN option bellow, use config in app.
 <<AUTO_LOGIN</>
 <<CONFIG<4>
-00|$RELEASE_VER = 1.7`LifeLog Application Version.
+00|$RELEASE_VER = 1.8`LifeLog Application Version.
 01|$REC_LIMIT   = 25`Records shown per page.
 03|$TIME_ZONE   = Australia/Sydney`Time zone of your country.
 05|$PRC_WIDTH   = 80`Default presentation width for pages.
@@ -21,6 +22,7 @@ Credential format:<<AUTO_LOGIN <{alias}/{password}> , dont enable here using AUT
 28|$THEME       = Standard`Theme to applay, Standard, Sun, Moon, Earth.
 30|$DEBUG       = 0`Development page additional debug output, off (default) or on.
 32|$KEEP_EXCS   = 0`Cache excludes between sessions, off (default) or on.
+34|$VIEW_ALL_LMT=1000`Limit of all records displayed for large logs. Set to 0, for unlimited.
 <<CAT<3>
 01|Unspecified `For quick uncategorised entries.
 03|File System `Operating file system/Application short log.
@@ -79,3 +81,9 @@ UPDATE LOG SET AFLAG=2 WHERE ID_CAT=%EXPENSE_ID%;
 LOG<6>|Run Query ' ver. 1.6
 ALTER TABLE LOG ADD STICKY BOOL DEFAULT 0;
 
+LOG<6>|Run Query ' ver. 1.8
+
+CREATE TABLE notes_temp_table (LID INTEGER PRIMARY KEY NOT NULL, DOC TEXT);
+INSERT INTO notes_temp_table SELECT `LID`,`DOC` FROM `NOTES`;
+DROP TABLE `NOTES`;
+ALTER TABLE `notes_temp_table` RENAME TO `NOTES`;
index 4bbb0fd0df44db6060cd9fd203fbe5dd97671844..74a3d8a31f65a298cc1c4bb4d35931d0f5100d5f 100644 (file)
@@ -191,7 +191,13 @@ function formValidation() {
         alert("Category -> has not been selected!");
         return false;
     }
-    return validDate($("#frm_entry [name='date']").val()) && validLog($("#frm_entry [name='log']").val());
+    var dt = $("#frm_entry [name='date']").val();
+    var i = dt.indexOf('id=');
+    if(i>0){
+        dt = dt.substring(0, i-1);
+        $("#frm_entry [name='date']").val(dt);
+    }
+    return validDate(dt) && validLog($("#frm_entry [name='log']").val());
 }
 
 function formDelValidation() {