Show More
@@ -314,7 +314,7 b'' | |||||
314 | $(document).ready(function() { |
|
314 | $(document).ready(function() { | |
315 | callbacks(); |
|
315 | callbacks(); | |
316 | var search_GET = "${request.GET.get('search','')}"; |
|
316 | var search_GET = "${request.GET.get('search','')}"; | |
317 | if (search_GET == "1") { |
|
317 | if (search_GET === "1") { | |
318 | _NODEFILTER.initFilter(); |
|
318 | _NODEFILTER.initFilter(); | |
319 | } |
|
319 | } | |
320 | }); |
|
320 | }); |
@@ -106,4 +106,25 b'' | |||||
106 | %endif |
|
106 | %endif | |
107 | %endif |
|
107 | %endif | |
108 | </div> |
|
108 | </div> | |
109 | </div> No newline at end of file |
|
109 | </div> | |
|
110 | ||||
|
111 | <script type="text/javascript"> | |||
|
112 | % if request.GET.get('mark'): | |||
|
113 | ||||
|
114 | $(function(){ | |||
|
115 | $(".codehilite").mark( | |||
|
116 | "${request.GET.get('mark')}", | |||
|
117 | { | |||
|
118 | "className": 'match', | |||
|
119 | "accuracy": "complementary", | |||
|
120 | "ignorePunctuation": ":._(){}[]!'+=".split(""), | |||
|
121 | "each": function(el) { | |||
|
122 | // and also highlight lines ! | |||
|
123 | $($(el).closest('tr')).find('td.cb-lineno').addClass('cb-line-selected'); | |||
|
124 | } | |||
|
125 | } | |||
|
126 | ); | |||
|
127 | ||||
|
128 | }); | |||
|
129 | % endif | |||
|
130 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now