mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-27 23:06:09 +00:00
enables new and edit buttons, hides steps in progress if new proposal clicked
This commit is contained in:
parent
10ef099643
commit
8b7fca6136
2 changed files with 14 additions and 2 deletions
|
@ -9,7 +9,9 @@ function setFormEditable(edit) {
|
|||
if (edit === true) {
|
||||
$('#btnPrepare').addClass('hidden');
|
||||
$('#btnEdit').removeClass('hidden');
|
||||
$('#btnEdit').removeAttr('disabled');
|
||||
$('#btnNew').removeClass('hidden');
|
||||
$('#btnNew').removeAttr('disabled');
|
||||
} else {
|
||||
$('#btnPrepare').removeClass('hidden');
|
||||
$('#btnEdit').addClass('hidden');
|
||||
|
@ -20,4 +22,4 @@ function setFormEditable(edit) {
|
|||
var copyToClipboard = function(id) {
|
||||
document.getElementById(id).select();
|
||||
document.execCommand('copy');
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue