@ -23,7 +23,7 @@ dJson._checkJson = function(json) {
return false ;
} ;
return og j ;
return ob j ;
} ;
//{"agent":"SuperNET","method":"encryptjson","passphrase":"<passphrase>","permanentfile":"<filename>","fromform":"valuefromform", "fromform2":"valuefromform2",...rest of form at top level}
@ -32,7 +32,7 @@ dJson.encrypt = function(credentials, json, cb) {
var jsonObj ;
if ( jsonObj = this . _ checkJson ) {
if ( jsonObj = this . _ checkJson ( json ) ) {
this . ENCRYPTED = true ;
this . request . method = "encryptjson" ;
@ -54,7 +54,7 @@ dJson.encrypt = function(credentials, json, cb) {
cb ( null ) ;
} ;
//{"agent":"SuperNET","method":"en cryptjson","passphrase":"<passphrase>","permanentfile":"<filename>"}
//{"agent":"SuperNET","method":"d ecryptjson","passphrase":"<passphrase>","permanentfile":"<filename>"}
dJson . decrypt = function ( credentials , cb ) {
this . _ init ( credentials ) ;
@ -78,7 +78,6 @@ $(document).ready(function() {
permFile = $ ( '#debug_permanentfile' ) ,
jsonSrc = $ ( '#debug_json_src' ) ;
$ ( encryptBtn ) . click ( function ( e ) {
e . preventDefault ( ) ;
debugJsonResult . text ( '' ) ;
@ -90,8 +89,8 @@ $(document).ready(function() {
jsonSrc . val ( ) ,
function ( response ) {
debugJsonResult . text ( response || 'wrong json' ) ;
}
) ;
} ) ;
} ) ;
$ ( decryptBtn ) . click ( function ( e ) {