# HG changeset patch # User cavaliet # Date 1395933049 -3600 # Node ID 0013e56757099ce2d57d792cfabb975e82ac98fa # Parent 157447feaaef49194a06324f9640c8f27e7e4619 v0.4.1 clean chapter filters diff -r 157447feaaef -r 0013e5675709 src/spel/__init__.py --- a/src/spel/__init__.py Thu Mar 27 12:55:28 2014 +0100 +++ b/src/spel/__init__.py Thu Mar 27 16:10:49 2014 +0100 @@ -1,4 +1,4 @@ -VERSION = (0, 4, 0, "final", 0) +VERSION = (0, 4, 1, "final", 0) VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))) diff -r 157447feaaef -r 0013e5675709 src/spel/static/spel/js/spectacle.js --- a/src/spel/static/spel/js/spectacle.js Thu Mar 27 12:55:28 2014 +0100 +++ b/src/spel/static/spel/js/spectacle.js Thu Mar 27 16:10:49 2014 +0100 @@ -192,8 +192,8 @@ $('input[name=end_date]').val(""); } else if($(this).parent().hasClass("reftext")){ - $('#start-text option:first-child').attr("selected", "selected"); - $('#end-text').val(""); + $('#start-text')[0].selectedIndex = 0; + $('#end-text')[0].selectedIndex = $('#end-text').children().length - 1; } $("#btn-filter-chapters").click(); // manage when nothing is selected