Reset checkboxes on new paste
This commit is contained in:
parent
5ece4d2632
commit
d3ba7eeb13
@ -3601,6 +3601,20 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear the attachment input in the top navigation.
|
||||||
|
*
|
||||||
|
* @name TopNav.clearAttachmentInput
|
||||||
|
* @function
|
||||||
|
*/
|
||||||
|
function clearAttachmentInput()
|
||||||
|
{
|
||||||
|
// hide UI for selected files
|
||||||
|
// our up-to-date jQuery can handle it :)
|
||||||
|
$fileWrap.find('input').val('');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* return raw text
|
* return raw text
|
||||||
*
|
*
|
||||||
@ -3695,7 +3709,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
// in any case, remove saved attachment data
|
// in any case, remove saved attachment data
|
||||||
AttachmentViewer.removeAttachmentData();
|
AttachmentViewer.removeAttachmentData();
|
||||||
|
|
||||||
me.clearAttachmentInput();
|
clearAttachmentInput();
|
||||||
AttachmentViewer.clearDragAndDrop();
|
AttachmentViewer.clearDragAndDrop();
|
||||||
|
|
||||||
// pevent '#' from appearing in the URL
|
// pevent '#' from appearing in the URL
|
||||||
@ -4111,16 +4125,21 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear the attachment input in the top navigation.
|
* Reset the top navigation back to it's default values.
|
||||||
*
|
*
|
||||||
* @name TopNav.clearAttachmentInput
|
* @name TopNav.resetInput
|
||||||
* @function
|
* @function
|
||||||
*/
|
*/
|
||||||
me.clearAttachmentInput = function()
|
me.resetInput = function()
|
||||||
{
|
{
|
||||||
// hide UI for selected files
|
clearAttachmentInput();
|
||||||
// our up-to-date jQuery can handle it :)
|
|
||||||
$fileWrap.find('input').val('');
|
$openDiscussion.prop('checked', false);
|
||||||
|
$burnAfterReading.prop('checked', false);
|
||||||
|
$openDiscussionOption.removeClass('buttondisabled');
|
||||||
|
$burnAfterReadingOption.removeClass('buttondisabled');
|
||||||
|
|
||||||
|
// TODO: reset expiration time
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -5144,7 +5163,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||||||
Editor.show();
|
Editor.show();
|
||||||
Editor.focusInput();
|
Editor.focusInput();
|
||||||
AttachmentViewer.removeAttachment();
|
AttachmentViewer.removeAttachment();
|
||||||
TopNav.clearAttachmentInput();
|
TopNav.resetInput();
|
||||||
|
|
||||||
TopNav.showCreateButtons();
|
TopNav.showCreateButtons();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user