mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-24 23:09:28 -05:00
Switch from bind / unbind to on / off
This commit is contained in:
parent
60cedd7fb5
commit
3f28f01b0e
@ -1928,7 +1928,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
|
|||||||
// IE does not support setting a data URI on an a element
|
// IE does not support setting a data URI on an a element
|
||||||
// Convert dataURI to a Blob and use msSaveBlob to download
|
// Convert dataURI to a Blob and use msSaveBlob to download
|
||||||
if (window.Blob && navigator.msSaveBlob) {
|
if (window.Blob && navigator.msSaveBlob) {
|
||||||
$attachmentLink.bind('click', function () {
|
$attachmentLink.off('click').on('click', function () {
|
||||||
// data URI format: data:[<mediaType>][;base64],<data>
|
// data URI format: data:[<mediaType>][;base64],<data>
|
||||||
|
|
||||||
// position in data URI string of where data begins
|
// position in data URI string of where data begins
|
||||||
@ -2001,7 +2001,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
|
|||||||
me.hideAttachmentPreview();
|
me.hideAttachmentPreview();
|
||||||
$attachmentLink.prop('href', '');
|
$attachmentLink.prop('href', '');
|
||||||
$attachmentLink.prop('download', '');
|
$attachmentLink.prop('download', '');
|
||||||
$attachmentLink.unbind('click');
|
$attachmentLink.off('click');
|
||||||
$attachmentPreview.html('');
|
$attachmentPreview.html('');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user