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:
parent
5595e92ec7
commit
da083863ee
1 changed files with 1 additions and 0 deletions
|
@ -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 });
|
||||||
|
|
Loading…
Reference in a new issue