# HG changeset patch # User Daniele Nicolodi # Date 1313260044 -7200 # Node ID bce8c427a5c5e87323b21dd8a00222fc4e69d684 # Parent 84c1573a3e97c0631ffe03e7e8683063cec0ff2a Integrate dropdown widget into query widget. diff -r 84c1573a3e97 -r bce8c427a5c5 src/ltpdarepo/static/querywidget.js --- a/src/ltpdarepo/static/querywidget.js Sat Aug 13 20:27:24 2011 +0200 +++ b/src/ltpdarepo/static/querywidget.js Sat Aug 13 20:27:24 2011 +0200 @@ -100,6 +100,7 @@ newcriteria.append($(document.createElement('input')) .attr({'value': '\u00D7', 'type': 'button', 'name': 'remove'}) .addClass('querywidget remove')); + $.dropdown.replace($("select", newcriteria)); $('#criteria').append(newcriteria); $(this).val(''); $(this).change(); diff -r 84c1573a3e97 -r bce8c427a5c5 src/ltpdarepo/templates/query.html --- a/src/ltpdarepo/templates/query.html Sat Aug 13 20:27:24 2011 +0200 +++ b/src/ltpdarepo/templates/query.html Sat Aug 13 20:27:24 2011 +0200 @@ -1,10 +1,15 @@ {% extends "objs.html" %} {% block head %} + + {% endblock %}