mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
making burn-after-reading and discussion mutually exclusive options to improve UI, resolves #11
This commit is contained in:
parent
7dbca9fca6
commit
5ec20c1bc2
|
@ -1201,6 +1201,23 @@ $(function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If discussion is checked, disable "burn after reading".
|
||||||
|
*/
|
||||||
|
changeOpenDisc: function()
|
||||||
|
{
|
||||||
|
if (this.openDiscussion.is(':checked') )
|
||||||
|
{
|
||||||
|
this.burnAfterReadingOption.addClass('buttondisabled');
|
||||||
|
this.burnAfterReading.attr({checked: false, disabled: true});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.burnAfterReadingOption.removeClass('buttondisabled');
|
||||||
|
this.burnAfterReading.removeAttr('disabled');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reload the page.
|
* Reload the page.
|
||||||
*
|
*
|
||||||
|
@ -1419,6 +1436,7 @@ $(function() {
|
||||||
bindEvents: function()
|
bindEvents: function()
|
||||||
{
|
{
|
||||||
this.burnAfterReading.change($.proxy(this.changeBurnAfterReading, this));
|
this.burnAfterReading.change($.proxy(this.changeBurnAfterReading, this));
|
||||||
|
this.openDisc.change($.proxy(this.changeOpenDisc, this));
|
||||||
this.sendButton.click($.proxy(this.sendData, this));
|
this.sendButton.click($.proxy(this.sendData, this));
|
||||||
this.cloneButton.click($.proxy(this.clonePaste, this));
|
this.cloneButton.click($.proxy(this.clonePaste, this));
|
||||||
this.rawTextButton.click($.proxy(this.rawText, this));
|
this.rawTextButton.click($.proxy(this.rawText, this));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user