v0.4.1 clean chapter filters
authorcavaliet
Thu, 27 Mar 2014 16:10:49 +0100
changeset 39 0013e5675709
parent 37 157447feaaef
child 40 689deb3966b2
v0.4.1 clean chapter filters
src/spel/__init__.py
src/spel/static/spel/js/spectacle.js
--- 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])))
 
--- 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