Move to apparition for integration tests
This commit is contained in:
parent
8823ca2060
commit
6d9c35db20
13 changed files with 65 additions and 53 deletions
|
|
@ -53,9 +53,9 @@
|
|||
- content_for :javascript do
|
||||
:javascript
|
||||
// keep import button pressed when import section is shown
|
||||
$(document).on('touchclick', 'a[data-toggle-this=#import]', function() {
|
||||
$(document).on('touchclick', 'a[data-toggle-this="#import"]', function() {
|
||||
var state = $('#import').is(':visible');
|
||||
$('.btn-toolbar a[data-toggle-this=#import]').toggleClass('active', !state);
|
||||
$('.btn-toolbar a[data-toggle-this="#import"]').toggleClass('active', !state);
|
||||
if (!state) {
|
||||
// also load articles when shown
|
||||
$('#import form').submit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue