Lines 26-57
Link Here
|
26 |
[% t("Koha") | html %] |
26 |
[% t("Koha") | html %] |
27 |
[% END %]</title> |
27 |
[% END %]</title> |
28 |
[% INCLUDE 'doc-head-close.inc' %] |
28 |
[% INCLUDE 'doc-head-close.inc' %] |
29 |
<style>[% FILTER collapse %] |
|
|
30 |
fieldset legend { |
31 |
border: 1px solid #FFF; |
32 |
margin-left: -.5em; |
33 |
margin-top: -.5em; |
34 |
padding: .7em; |
35 |
} |
36 |
fieldset legend:hover { |
37 |
border: 1px solid #6FAF44; |
38 |
cursor: pointer; |
39 |
} |
40 |
|
41 |
fieldset legend i { |
42 |
color: #4C7AA8; |
43 |
font-size: 80%; |
44 |
padding-right: .2rem; |
45 |
} |
46 |
|
47 |
fieldset legend.collapsed { |
48 |
margin-bottom: -.5em; |
49 |
} |
50 |
|
51 |
legend.collapsed i.fa.fa-caret-down::before { |
52 |
content: "\f0da"; |
53 |
} |
54 |
[% END %]</style> |
55 |
</head> |
29 |
</head> |
56 |
|
30 |
|
57 |
<body id="pat_memberentrygen" class="pat"> |
31 |
<body id="pat_memberentrygen" class="pat"> |
Lines 1856-1873
legend.collapsed i.fa.fa-caret-down::before {
Link Here
|
1856 |
[% END %] |
1830 |
[% END %] |
1857 |
} |
1831 |
} |
1858 |
|
1832 |
|
1859 |
function togglePanel( node ){ |
|
|
1860 |
var panel = node.nextAll(); |
1861 |
if(panel.is(":visible")){ |
1862 |
node.addClass("collapsed").removeClass("expanded").attr("title", _("Click to expand this section") ); |
1863 |
panel.hide(); |
1864 |
} else { |
1865 |
node.addClass("expanded").removeClass("collapsed").attr("title", _("Click to collapse this section") ); |
1866 |
panel.show(); |
1867 |
panel.find("input, select, textarea").eq(0).focus(); |
1868 |
} |
1869 |
} |
1870 |
|
1871 |
$(document).ready(function() { |
1833 |
$(document).ready(function() { |
1872 |
showHideFields(); |
1834 |
showHideFields(); |
1873 |
$("#toggle_hidden_fields").change(function(){ |
1835 |
$("#toggle_hidden_fields").change(function(){ |
Lines 1875-1881
legend.collapsed i.fa.fa-caret-down::before {
Link Here
|
1875 |
}); |
1837 |
}); |
1876 |
|
1838 |
|
1877 |
$(".collapsed,.expanded").on("click",function(){ |
1839 |
$(".collapsed,.expanded").on("click",function(){ |
1878 |
togglePanel( $(this) ); |
|
|
1879 |
$("#messaging_prefs_loading").hide(); |
1840 |
$("#messaging_prefs_loading").hide(); |
1880 |
$("#guarantor_template").hide(); |
1841 |
$("#guarantor_template").hide(); |
1881 |
}); |
1842 |
}); |