mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-23 14:29:29 -05:00
updated jquery to 1.11.3
This commit is contained in:
parent
3aa4911991
commit
769768d25e
10
js/jquery.js
vendored
10
js/jquery.js
vendored
File diff suppressed because one or more lines are too long
@ -51,7 +51,7 @@ function hashToParameterString(associativeArray)
|
||||
}
|
||||
//padding for URL shorteners
|
||||
parameterString += "&p=p";
|
||||
|
||||
|
||||
return parameterString;
|
||||
}
|
||||
|
||||
@ -72,7 +72,7 @@ function parameterStringToHash(parameterString)
|
||||
var value = decodeURIComponent(pair[1]);
|
||||
parameterHash[key] = value;
|
||||
}
|
||||
|
||||
|
||||
return parameterHash;
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ function getParameterHash()
|
||||
return parameterStringToHash(window.location.href.substring(hashIndex + 1));
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -323,10 +323,10 @@ function send_data() {
|
||||
if (!sjcl.random.isReady())
|
||||
{
|
||||
showStatus('Sending paste (Please move your mouse for more entropy)...', spin=true);
|
||||
sjcl.random.addEventListener('seeded', function(){ send_data(); });
|
||||
return;
|
||||
sjcl.random.addEventListener('seeded', function(){ send_data(); });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
showStatus('Sending paste...', spin=true);
|
||||
|
||||
var randomkey = sjcl.codec.base64.fromBits(sjcl.random.randomWords(8, 0), 0);
|
||||
@ -375,13 +375,13 @@ function selectText(element) {
|
||||
var doc = document
|
||||
, text = doc.getElementById(element)
|
||||
, range, selection
|
||||
;
|
||||
;
|
||||
if (doc.body.createTextRange) { //ms
|
||||
range = doc.body.createTextRange();
|
||||
range.moveToElementText(text);
|
||||
range.select();
|
||||
} else if (window.getSelection) { //all others
|
||||
selection = window.getSelection();
|
||||
selection = window.getSelection();
|
||||
range = doc.createRange();
|
||||
range.selectNodeContents(text);
|
||||
selection.removeAllRanges();
|
||||
@ -450,10 +450,10 @@ function rawText()
|
||||
*/
|
||||
function clonePaste() {
|
||||
stateNewPaste();
|
||||
|
||||
|
||||
//Erase the id and the key in url
|
||||
history.replaceState(document.title, document.title, scriptLocation());
|
||||
|
||||
|
||||
showStatus('');
|
||||
$('textarea#message').text($('div#cleartext').text());
|
||||
}
|
||||
@ -550,7 +550,7 @@ $(function() {
|
||||
|
||||
// If "burn after reading" is checked, disable discussion.
|
||||
$('input#burnafterreading').change(function() {
|
||||
if ($(this).is(':checked') ) {
|
||||
if ($(this).is(':checked') ) {
|
||||
$('div#opendisc').addClass('buttondisabled');
|
||||
$('input#opendiscussion').attr({checked: false});
|
||||
$('input#opendiscussion').attr('disabled',true);
|
||||
|
@ -198,7 +198,7 @@ class zerobin
|
||||
}
|
||||
if ($expire > 0) $meta['expire_date'] = time() + $expire;
|
||||
}
|
||||
|
||||
|
||||
// Destroy the paste when it is read.
|
||||
if (!empty($_POST['burnafterreading']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user