Skip to content

Commit

Permalink
Added save+new frontend call
Browse files Browse the repository at this point in the history
  • Loading branch information
r3-gabriel committed Sep 19, 2023
1 parent 12615c8 commit f2c393a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions www/comps/builder/builderJsFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ let MyBuilderJsFunction = {
'get_e2ee_data_value','get_language_code','get_login_id',
'get_preset_record_id','get_record_id','get_role_ids','go_back',
'has_role','pdf_create','record_delete','record_new',
'record_reload','record_save','set_e2ee_by_login_ids',
'set_e2ee_by_login_ids_and_relation','timer_clear','timer_set',
'value_store_get','value_store_set'
'record_reload','record_save','record_save_new',
'set_e2ee_by_login_ids','set_e2ee_by_login_ids_and_relation',
'timer_clear','timer_set','value_store_get','value_store_set'
],
appFunctionsAsync:[
'get_e2ee_data_key','get_e2ee_data_value'
Expand Down
9 changes: 5 additions & 4 deletions www/comps/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,11 @@ let MyForm = {
form_show_message:s.messageSet,

// record functions
record_delete:() => { s.delAsk(); s.recordActionFree = false; },
record_new: () => { s.openNewAsk(); s.recordActionFree = false; },
record_reload:() => { s.get(); s.recordActionFree = false; },
record_save: () => { s.set(); s.recordActionFree = false; },
record_delete: () => { s.delAsk(); s.recordActionFree = false; },
record_new: () => { s.openNewAsk(); s.recordActionFree = false; },
record_reload: () => { s.get(); s.recordActionFree = false; },
record_save: () => { s.set(false); s.recordActionFree = false; },
record_save_new:() => { s.set(true); s.recordActionFree = false; },

// PDF functions
pdf_create:s.generatePdf,
Expand Down
1 change: 1 addition & 0 deletions www/langs/REPLACE_BY_BUILD/de_de
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@
"record_new":"app.record_new() => UNDEFINED<br /><br />Öffnet einen neuen Datensatz.",
"record_reload":"app.record_reload() => UNDEFINED<br /><br />Lädt den aktuellen Formulardatensatz neu.",
"record_save":"app.record_save() => UNDEFINED<br /><br />Speichert den aktuellen Formulardatensatz.",
"record_save_new":"app.record_save_new() => UNDEFINED<br /><br />Speichert den aktuellen Formulardatensatz und öffnet danach einen neuen Datensatz.",
"set_e2ee_by_login_ids":"app.set_e2ee_by_login_ids(login_ids) => UNDEFINED<br /><br />Wenn aufgerufen, wird die Ende-Zu-Ende-Verschlüsselung beim nächsten Speichern des Formulares aktualisiert. Datenschlüssel für Relationen auf dem Formular mit aktivierter Verschlüsselung werden mit den öffentlichen Schlüssel von jeder definierten Anmeldung verschlüsselt. Hiermit können Benutzer Datensätze später entschlüsseln.<br /><br />Wenn diese Funktion nicht aufgerufen wird, kann nur der Ersteller entschlüsseln.",
"set_e2ee_by_login_ids_and_relation":"app.set_e2ee_by_login_ids_and_relation(login_ids,relation_id,record_ids) => UNDEFINED<br /><br />Wenn aufgerufen, wird die Ende-Zu-Ende-Verschlüsselung für die definierte Relation und Datensätze beim nächsten Speichern des Formulares aktualisiert. Datenschlüssel für Datensätze der Relation werden mit den öffentlichen Schlüssel von jeder definierten Anmeldung verschlüsselt. Hiermit können Benutzer Datensätze später entschlüsseln.",
"timer_clear":"app.timer_clear(name) => UNDEFINED<br /><br />Bricht einen Timer mit dem angegebenen Namen ab, welcher vorher mit \"app.timer_set()\" erstellt worden ist.",
Expand Down
1 change: 1 addition & 0 deletions www/langs/REPLACE_BY_BUILD/en_us
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@
"record_new":"app.record_new() => UNDEFINED<br /><br />Opens new record.",
"record_reload":"app.record_reload() => UNDEFINED<br /><br />Reloads the current form record.",
"record_save":"app.record_save() => UNDEFINED<br /><br />Saves the current form record.",
"record_save_new":"app.record_save_new() => UNDEFINED<br /><br />Saves the current form record and then opens an new record.",
"set_e2ee_by_login_ids":"app.set_e2ee_by_login_ids(login_ids) => UNDEFINED<br /><br />When called, end-to-end encryption is updated on the next form save. Data keys for relations on the form with encryption enabled will be encrypted with the public key of each defined login. This enables later decryption of these records for users.<br /><br />If this function is not used, decryption is only ever possible for the creator.",
"set_e2ee_by_login_ids_and_relation":"app.set_e2ee_by_login_ids_and_relation(login_ids,relation_id,record_ids) => UNDEFINED<br /><br />When called, end-to-end encryption is updated for the specified relation and records on the next form save. Data keys for relation records will be encrypted with the public key of each defined login. This enables later decryption of these records for users.",
"timer_clear":"app.timer_clear(name) => UNDEFINED<br /><br />Aborts a timer with the given name, previously created with 'app.timer_set()'.",
Expand Down
1 change: 1 addition & 0 deletions www/langs/REPLACE_BY_BUILD/hu_hu
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@
"record_new":"app.record_new() => UNDEFINED<br /><br />Új rekord létrehozása.",
"record_reload":"app.record_reload() => UNDEFINED<br /><br />Az aktuális űrlap rekordjának újratöltése.",
"record_save":"app.record_save() => UNDEFINED<br /><br />Az aktuális űrlap rekordjának mentése.",
"record_save_new":"app.record_save_new() => UNDEFINED<br /><br />Saves the current form record and then opens an new record.",
"set_e2ee_by_login_ids":"app.set_e2ee_by_login_ids(login_ids) => UNDEFINED<br /><br />Ha meghívják, a következő mentéskor frissíti az end-to-end titkosítást. A űrlapon engedélyezett titkosítással rendelkező kapcsolatokhoz tartozó adatkulcsokat minden meghatározott bejelentkezés nyilvános kulcsával titkosítja. Ez lehetővé teszi a felhasználók számára, hogy később dekódolják az adatokat.<br /><br />Ha ezt a függvényt nem hívják meg, csak a létrehozó tudja dekódolni az adatokat.",
"set_e2ee_by_login_ids_and_relation":"app.set_e2ee_by_login_ids_and_relation(login_ids, relation_id, record_ids) => UNDEFINED<br /><br />Ha meghívják, a következő mentéskor frissíti az end-to-end titkosítást a meghatározott kapcsolat és rekordok számára. Az adatkapcsolat rekordjait minden meghatározott bejelentkezés nyilvános kulcsával titkosítja. Ez lehetővé teszi a felhasználók számára, hogy később dekódolják az adatokat.",
"timer_clear":"app.timer_clear(name) => UNDEFINED<br /><br />Egy meghatározott névvel rendelkező időzítőt töröl, amelyet korábban az \"app.timer_set()\" segítségével hoztak létre.",
Expand Down
1 change: 1 addition & 0 deletions www/langs/REPLACE_BY_BUILD/it_it
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@
"record_new":"app.record_new() => UNDEFINED<br /><br />Apre un nuovo record.",
"record_reload":"app.record_reload() => UNDEFINED<br /><br />Ricarica il record attuale.",
"record_save":"app.record_save() => UNDEFINED<br /><br />Salva il record corrente.",
"record_save_new":"app.record_save_new() => UNDEFINED<br /><br />Saves the current form record and then opens an new record.",
"set_e2ee_by_login_ids":"app.set_e2ee_by_login_ids(login_ids) => UNDEFINED<br /><br />When called, end-to-end encryption is updated on the next form save. Data keys for relations on the form with encryption enabled will be encrypted with the public key of each defined login. This enables later decryption of these records for users.<br /><br />If this function is not used, decryption is only ever possible for the creator.",
"set_e2ee_by_login_ids_and_relation":"app.set_e2ee_by_login_ids_and_relation(login_ids,relation_id,record_ids) => UNDEFINED<br /><br />When called, end-to-end encryption is updated for the specified relation and records on the next form save. Data keys for relation records will be encrypted with the public key of each defined login. This enables later decryption of these records for users.",
"timer_clear":"app.timer_clear(name) => UNDEFINED<br /><br />Aborts a timer with the given name, previously created with 'app.timer_set()'.",
Expand Down
1 change: 1 addition & 0 deletions www/langs/REPLACE_BY_BUILD/ro_ro
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@
"record_new":"app.record_new() => UNDEFINED<br /><br />Deschideți nouă înregistrare.",
"record_reload":"app.record_reload() => UNDEFINED<br /><br />Reîncărcați înregistrarea formularului curent.",
"record_save":"app.record_save() => UNDEFINED<br /><br />Salvați înregistrarea formularului curent.",
"record_save_new":"app.record_save_new() => UNDEFINED<br /><br />Saves the current form record and then opens an new record.",
"set_e2ee_by_login_ids":"app.set_e2ee_by_login_ids(login_ids) => UNDEFINED<br /><br />When called, end-to-end encryption is updated on the next form save. Data keys for relations on the form with encryption enabled will be encrypted with the public key of each defined login. This enables later decryption of these records for users.<br /><br />If this function is not used, decryption is only ever possible for the creator.",
"set_e2ee_by_login_ids_and_relation":"app.set_e2ee_by_login_ids_and_relation(login_ids,relation_id,record_ids) => UNDEFINED<br /><br />When called, end-to-end encryption is updated for the specified relation and records on the next form save. Data keys for relation records will be encrypted with the public key of each defined login. This enables later decryption of these records for users.",
"timer_clear":"app.timer_clear(name) => UNDEFINED<br /><br />Aborts a timer with the given name, previously created with 'app.timer_set()'.",
Expand Down

0 comments on commit f2c393a

Please sign in to comment.