mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Disable import button once it's clicked
This commit is contained in:
parent
543e6c598a
commit
344fc06315
2
public/css/built.css
vendored
2
public/css/built.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5
resources/assets/css/style.css
vendored
5
resources/assets/css/style.css
vendored
@ -203,6 +203,11 @@ padding: 5px 10px;
|
|||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
.btn-info:disabled {
|
||||||
|
background-color: #e89259 !important;
|
||||||
|
border-color: #e89259 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
.xbtn-primary {
|
.xbtn-primary {
|
||||||
background-color: #34495E;
|
background-color: #34495E;
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
||||||
{!! Former::open_for_files('/import')
|
{!! Former::open_for_files('/import')
|
||||||
|
->onsubmit('return onFormSubmit(event)')
|
||||||
->addClass('warn-on-exit') !!}
|
->addClass('warn-on-exit') !!}
|
||||||
|
|
||||||
{!! Former::select('source')
|
{!! Former::select('source')
|
||||||
@ -50,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
{!! Former::actions( Button::info(trans('texts.upload'))->submit()->large()->appendIcon(Icon::create('open'))) !!}
|
{!! Former::actions( Button::info(trans('texts.upload'))->withAttributes(['id' => 'uploadButton'])->submit()->large()->appendIcon(Icon::create('open'))) !!}
|
||||||
{!! Former::close() !!}
|
{!! Former::close() !!}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -117,6 +118,11 @@
|
|||||||
setCheckboxesEnabled();
|
setCheckboxesEnabled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function onFormSubmit() {
|
||||||
|
$('#uploadButton').attr('disabled', true);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
function setCheckboxesEnabled() {
|
function setCheckboxesEnabled() {
|
||||||
var $checkboxes = $('.entity-types input[type=checkbox]');
|
var $checkboxes = $('.entity-types input[type=checkbox]');
|
||||||
var include = $('input[name=include]:checked').val()
|
var include = $('input[name=include]:checked').val()
|
||||||
|
@ -20,11 +20,6 @@
|
|||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-info:disabled {
|
|
||||||
background-color: #e89259 !important;
|
|
||||||
border-color: #e89259 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#scrollable-dropdown-menu .tt-menu {
|
#scrollable-dropdown-menu .tt-menu {
|
||||||
max-height: 150px;
|
max-height: 150px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user