Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
fix #18 und Bug bei EncNotesHistroy
Browse files Browse the repository at this point in the history
  • Loading branch information
kimbtech committed Feb 2, 2020
1 parent 7f954ab commit c5d0434
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
latest
1
1.1
1.1.5
1.1.6
6 changes: 3 additions & 3 deletions build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "kimbtech",
"license": "GPL-3.0",
"dependencies": {
"clean-css": "^4.1.9",
"clean-css": "^4.2.3",
"uglify-es": "^3.3.1"
}
}
13 changes: 9 additions & 4 deletions system/load/devjs/fun_maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ function maker(noteid, notename, sharecont, savecallback, encrypted) {
if( typeof encrypted === "undefined" || encrypted !== true ){
encrypted = false;
}
if(encrypted){
$("button#publishnote").prop('disabled', true);
}
$("button#publishnote").prop('disabled', encrypted);

// Erstelle zwei Variablen, die Zustand darstellen
if (typeof sharecont === "undefined") {
Expand Down Expand Up @@ -732,9 +730,16 @@ function maker(noteid, notename, sharecont, savecallback, encrypted) {
var key = $(this).attr('key');
var newtext = data.data[key]["text"];

if( encrypted ){
try {
newtext = systemEncrypter.decryptNote( newtext );
} catch (error) {
setTimeout( () => { errorMessage('Kann Verlauf nicht entschlüsseln!', 10); }, 200 );
return;
}
}
cm_editor.setValue(newtext);
$("div#historyManagerDialog").dialog("close");

});
}
else {
Expand Down
2 changes: 1 addition & 1 deletion system/load/notes.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion system/php/systemInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract class SystemInit{

//Sytemversion
// [ Hauptversionsnummer, Unternummer, Patch, Zusatz (Alpha, Beta, Final) ] => [1, 23, 5, 'B'] -> 1.23.5 Beta
const SYSTEMVERSION = [ 1, 1, 4, 'Final' ];
const SYSTEMVERSION = [ 1, 1, 6, 'Final' ];

/*
Auslesen der Konfiguration
Expand Down

0 comments on commit c5d0434

Please sign in to comment.