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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt (-4 / +7 lines)
Lines 24-30 Link Here
24
24
25
			var attrcode = $("script", clone).attr("x-code");
25
			var attrcode = $("script", clone).attr("x-code");
26
			var newsuffix = parts[1] + appendid;
26
			var newsuffix = parts[1] + appendid;
27
			create_auto_completion_responder(newsuffix,attrcode);
27
            [% IF ( CircAutocompl ) %]
28
                create_auto_completion_responder(newsuffix,attrcode);
29
            [% END %]
28
		}
30
		}
29
31
30
        parent.parentNode.insertBefore(clone, parent.nextSibling);
32
        parent.parentNode.insertBefore(clone, parent.nextSibling);
Lines 33-38 Link Here
33
        var parent = node.parentNode;
35
        var parent = node.parentNode;
34
        parent.parentNode.removeChild(parent);
36
        parent.parentNode.removeChild(parent);
35
    }
37
    }
38
    [% IF ( CircAutocompl ) %]
36
	function create_auto_completion_responder(uniqueid,attrcode) {
39
	function create_auto_completion_responder(uniqueid,attrcode) {
37
		YAHOO.util.Event.onContentReady("pattrodue-getready-"+uniqueid, function() {
40
		YAHOO.util.Event.onContentReady("pattrodue-getready-"+uniqueid, function() {
38
			new function() {
41
			new function() {
Lines 64-69 Link Here
64
			}
67
			}
65
		});
68
		});
66
	}
69
	}
70
    [% END %]
67
//]]>
71
//]]>
68
</script>
72
</script>
69
<style type="text/css">
73
<style type="text/css">
Lines 190-197 Link Here
190
		<!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
194
		<!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
191
		<li>
195
		<li>
192
			<label>[% patron_attr_filter_loo.description %]:</label>
196
			<label>[% patron_attr_filter_loo.description %]:</label>
193
			[% IF ( patron_attr_filter_loo.authorised_value_category ) %]
197
            [% IF ( patron_attr_filter_loo.authorised_value_category AND CircAutocompl) %]
194
				<script type="text/JavaScript" language="JavaScript" x-code="[% patron_attr_filter_loo.code |html %]">create_auto_completion_responder([% patron_attr_filter_loo.domid %],"[% patron_attr_filter_loo.code |html %]");</script>
198
                <script type="text/JavaScript" language="JavaScript" x-code="[% patron_attr_filter_loo.code |html %]">create_auto_completion_responder([% patron_attr_filter_loo.domid %],"[% patron_attr_filter_loo.code |html %]");</script>
195
				<span id="pattrodue-getready-[% patron_attr_filter_loo.domid %]">
199
				<span id="pattrodue-getready-[% patron_attr_filter_loo.domid %]">
196
						<div class="pattrodue-autocomplete">
200
						<div class="pattrodue-autocomplete">
197
							<input autocomplete="off" id="pattrodue-input-[% patron_attr_filter_loo.domid %]" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]"  class="pattrodue-input" type="text" />
201
							<input autocomplete="off" id="pattrodue-input-[% patron_attr_filter_loo.domid %]" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]"  class="pattrodue-input" type="text" />
198
- 

Return to bug 5180