View | Details | Raw Unified | Return to bug 9648
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt (-28 / +17 lines)
Lines 26-31 Link Here
26
     });
26
     });
27
//]]>
27
//]]>
28
</script>
28
</script>
29
[% IF ( else ) %]
30
<script type="text/javascript">
31
//<![CDATA[
32
$(document).ready(function() {
33
    $('#category').find("input:submit").hide();
34
    $('#searchfield').change(function() {
35
        $('#category').submit();
36
    });
37
});
38
//]]>
39
</script>
40
[% END %]
41
29
<style type="text/css">
42
<style type="text/css">
30
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
43
	fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
31
    fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
44
    fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : #F4F8F9; }
Lines 169-201 Link Here
169
182
170
[% IF ( else ) %]
183
[% IF ( else ) %]
171
184
172
<div id="toolbar">
185
<div id="toolbar" class="btn-toolbar">
173
	<script type="text/javascript">
186
    <a id="addauth" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=[% category %]">New authorized value for [% category %]</a>
174
	//<![CDATA[
187
    <a id="addcat" class="btn btn-small" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New category</a>
175
188
</div>
176
	// prepare DOM for YUI Toolbar
177
178
	 $(document).ready(function() {
179
	    yuiToolbar();
180
		$('#category').find("input:submit").hide();
181
		$('#searchfield').change(function() {
182
		$('#category').submit();
183
		});
184
	 });
185
186
	// YUI Toolbar Functions
187
188
	function yuiToolbar() {
189
	    new YAHOO.widget.Button("addauth");
190
	    new YAHOO.widget.Button("addcat");
191
	}
192
193
	//]]>
194
	</script>
195
	<ul class="toolbar">
196
     <li><a id="addauth" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=[% category %]">New authorized value for [% category %]</a></li>
197
    <li><a id="addcat" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New category</a></li>
198
</ul></div>
199
189
200
<h1>Authorized values</h1>
190
<h1>Authorized values</h1>
201
<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>
191
<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>
202
- 

Return to bug 9648