summaryrefslogtreecommitdiffstatshomepage
path: root/www/jsScuttle.php
diff options
context:
space:
mode:
authorGravatar Yalçın Can2011-07-27 14:23:37 +0300
committerGravatar Yalçın Can2011-07-27 14:23:37 +0300
commitefd842174fdd37f8eb2c460c7adb21954bcfbe9d (patch)
treea2ab3cc25db92b901b69ce1bc0ad1dedb5d498ef /www/jsScuttle.php
parent8cd40b3d76e191b2fbe95b044f69aed07cc27664 (diff)
parent81aa17b8523d95310c90366d9af09767db0c84f2 (diff)
downloadscuttle-efd842174fdd37f8eb2c460c7adb21954bcfbe9d.tar.gz
scuttle-efd842174fdd37f8eb2c460c7adb21954bcfbe9d.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'www/jsScuttle.php')
-rw-r--r--www/jsScuttle.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/jsScuttle.php b/www/jsScuttle.php
index 5e5f31b..de97fd2 100644
--- a/www/jsScuttle.php
+++ b/www/jsScuttle.php
@@ -90,6 +90,24 @@ function useAddress(ele) {
}
}
+/**
+ * Makes an ajax call to PHP script to generate an new Private Key
+ *
+ * @param input Calling object
+ * @param response Response object that returned value is placed
+ *
+ * @return boolean Returns false to halt execution after call
+ */
+function getNewPrivateKey(input, response){
+ var pk = document.getElementById('pPrivateKey');
+ if (response != null) {
+ pk.value = response.trim();
+ } else {
+ loadXMLDocProc('<?php echo ROOT; ?>ajaxGetNewPrivateKey.php');
+ }
+ return false;
+}
+
function getTitle(input, response){
var title = document.getElementById('titleField');
if (title.value == '') {