Commit de4c8547 authored by marcus-tun's avatar marcus-tun
Browse files

fixed vim foo

parent 6032bea6
......@@ -42,16 +42,20 @@ $.get( from, function( assertion, stat ) {
console.log ('out: ' + out);
console.log ('enc_ass: ' + enc_assertion);
$.post(to, out, function(data, stat){ console.log('sending');
$.post(to, out, function(data, stat){
console.log('sending');
console.log('buf: ' + buf);
// replace content in the template
buf = data.split("&"); url = buf[1].split("=")[1];
shorturl = buf[2].split("=")[1]; console.log('url: ' + url);
console.log('shorturl ' + shorturl); $("#url2").html('<a
href="'+url+'">encrypted assertion</a>');
$("#url").text(url+"?k="+key);
$("#shorturl").text(shorturl+"?k="+key);
$("#stat_post").text(stat) })
// replace content in the template
buf = data.split("&");
url = buf[1].split("=")[1];
shorturl = buf[2].split("=")[1];
console.log('url: ' + url);
console.log('shorturl ' + shorturl);
$("#url2").html('<a href="'+url+'">encrypted assertion</a>');
$("#url").text(url+"?k="+key);
$("#shorturl").text(shorturl+"?k="+key);
$("#stat_post").text(stat)
})
console.log ('sent encrypted assertion out');
$( "#stat_get" ).text("success");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment