Skip to content

Commit

Permalink
Merge pull request #41 from legalthings/use-bootstrap-tabs-in-mobile
Browse files Browse the repository at this point in the history
LD: Switching tabs not working in create document
  • Loading branch information
jasny authored May 2, 2017
2 parents 11b44d3 + a1a3ef8 commit 3b000a7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions js/ractive-legalform.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,18 +418,13 @@
* Preview switch for mobile
*/
initPreviewSwitch: function () {
$('#doc').offcanvas({placement: 'right', toggle: false, autohide: false});

$('#nav-show-form').on('click', function() {
$('#doc').offcanvas('hide');
});

$('#nav-show-info').on('click', function() {
$('#doc').removeClass('show-preview').offcanvas('show');
$('#doc').removeClass('show-preview');
});

$('#nav-show-preview').on('click', function() {
$('#doc').addClass('show-preview').offcanvas('show');
$('#doc').addClass('show-preview');
});
},

Expand Down

0 comments on commit 3b000a7

Please sign in to comment.