Lines 78-83
Link Here
|
78 |
selectTab( tablink ); |
78 |
selectTab( tablink ); |
79 |
window.scrollTo( 0, getScrollto( field, "toolbar" ) ); |
79 |
window.scrollTo( 0, getScrollto( field, "toolbar" ) ); |
80 |
}); |
80 |
}); |
|
|
81 |
|
82 |
$(".change-authtype").on("click", function(){ |
83 |
var authtypecode = $(this).data("authtypecode"); |
84 |
var f = document.f; |
85 |
f.op.value = "[% op | html %]"; |
86 |
f.authid.value = "[% authid | html %]"; |
87 |
f.changed_authtype.value = "changed"; |
88 |
f.authtypecode.value = authtypecode; |
89 |
f.submit(); |
90 |
}); |
81 |
}); |
91 |
}); |
82 |
|
92 |
|
83 |
function selectTab( tablink ){ |
93 |
function selectTab( tablink ){ |
Lines 311-316
Link Here
|
311 |
<input type="hidden" name="authid" value="[% authid | html %]" /> |
321 |
<input type="hidden" name="authid" value="[% authid | html %]" /> |
312 |
<input type="hidden" name="index" value="[% index | html %]" /> |
322 |
<input type="hidden" name="index" value="[% index | html %]" /> |
313 |
<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> |
323 |
<input type="hidden" value="0" id="confirm_not_duplicate" name="confirm_not_duplicate" /> |
|
|
324 |
<input type="hidden" name="changed_authtype" value="" /> |
314 |
|
325 |
|
315 |
<div id="toolbar" class="btn-toolbar"> |
326 |
<div id="toolbar" class="btn-toolbar"> |
316 |
<div class="btn-group"><a href="#" id="addauth" class="btn btn-default" accesskey="w"><i class="fa fa-save"></i> Save</a></div> |
327 |
<div class="btn-group"><a href="#" id="addauth" class="btn btn-default" accesskey="w"><i class="fa fa-save"></i> Save</a></div> |
Lines 322-327
Link Here
|
322 |
[% END %] |
333 |
[% END %] |
323 |
</div> |
334 |
</div> |
324 |
<div class="btn-group"> |
335 |
<div class="btn-group"> |
|
|
336 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i> Settings <span class="caret"></span></button> |
337 |
<ul id="settings-menu" class="dropdown-menu"> |
338 |
<li class="dropdown-header">Change authority type</li> |
339 |
<li> |
340 |
<a href="#" class="change-authtype" data-authtypecode=""> |
341 |
[% IF ( authtypecode ) %] |
342 |
<i class="fa fa-fw"> </i> |
343 |
[% ELSE %] |
344 |
<i class="fa fa-fw fa-check"></i> |
345 |
[% END %] |
346 |
Default |
347 |
</a> |
348 |
</li> |
349 |
[% FOREACH authority_type IN authority_types %] |
350 |
<li> |
351 |
<a href="#" class="change-authtype" data-authtypecode="[% authority_type.authtypecode | html %]"> |
352 |
[% IF authority_type.authtypecode == authtypecode %] |
353 |
<i class="fa fa-fw fa-check"></i> |
354 |
[% ELSE %] |
355 |
<i class="fa fa-fw"> </i> |
356 |
[% END %] |
357 |
[% authority_type.authtypetext | html %] |
358 |
</a> |
359 |
</li> |
360 |
[% END %] |
361 |
</ul> <!-- /#settings-menu --> |
362 |
</div> <!-- /.btn-group --> |
363 |
<div class="btn-group"> |
325 |
[% IF ( authid ) %] |
364 |
[% IF ( authid ) %] |
326 |
<a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a> |
365 |
<a class="btn btn-default" id="cancel" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | url %]">Cancel</a> |
327 |
[% ELSE %] |
366 |
[% ELSE %] |
328 |
- |
|
|