Skip to content

Commit 8ad2960

Browse files
committed
Move search button JavaScript to right template file
- Legacy-Id: 1948
1 parent 29d3d3d commit 8ad2960

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

ietf/templates/idrfc/base.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@
8585
var oMenu = new YAHOO.widget.Menu("wgs", { position: "static", hidedelay: 750, lazyload: true });
8686
oMenu.render();
8787
});
88-
YAHOO.util.Event.onContentReady("search_submit_button", function () {
89-
var oButton = new YAHOO.widget.Button("search_submit_button", {});
90-
});
9188
{% block scripts %}
9289
{% endblock %}
9390
//]]>

ietf/templates/idrfc/search_main.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@ <h1>Internet-Drafts and RFCs</h1>
4747
{% include "idrfc/search_results.html" %}
4848
{% endif %}
4949
</div>
50-
51-
{% endblock %}
50+
{% endblock content %}
51+
{% block scripts %}
52+
YAHOO.util.Event.onContentReady("search_submit_button", function () {
53+
var oButton = new YAHOO.widget.Button("search_submit_button", {});
54+
});
55+
{% endblock scripts %}

0 commit comments

Comments
 (0)