Bug 3534: Force margin-left: 0 for second button

When quick adding a new patron, both button are in the DOM and the
second button has a margin-left (from .btn-toolbar > .btn + .btn).
This patch force the margin-left to 0 to avoid the button to move when
toggling them.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-07-07 15:36:47 +01:00 committed by Kyle M Hall
parent 5595e92ec7
commit da083863ee

View file

@ -9,6 +9,7 @@
//<![CDATA[ //<![CDATA[
$(document).ready(function() { $(document).ready(function() {
$("#saverecord").css({ 'margin-left': 0 });
var original_offset = $("#toolbar").position().top; var original_offset = $("#toolbar").position().top;
var additional_height = $("#filters").height(); var additional_height = $("#filters").height();
$('#toolbar').fixFloat({ 'originalOffset': original_offset - additional_height }); $('#toolbar').fixFloat({ 'originalOffset': original_offset - additional_height });