Revision c8977d75 snf-astakos-app/astakos/im/static/im/js/common.js
b/snf-astakos-app/astakos/im/static/im/js/common.js | ||
---|---|---|
203 | 203 |
|
204 | 204 |
|
205 | 205 |
$(".table_sorting").tablesorter(); |
206 |
|
|
207 |
$('table .more-info').click(function(e){ |
|
208 |
e.preventDefault(); |
|
209 |
$(this).toggleClass('open'); |
|
210 |
$(this).parents('tr').next('tr').toggle(); |
|
211 |
check_table_info(); |
|
212 |
}) |
|
213 |
|
|
214 |
function check_table_info() { |
|
215 |
if ($('table .more-info').hasClass('open')){ |
|
216 |
$(this).text('[- Less Info]') |
|
217 |
} else { |
|
218 |
$(this).text('[+ More Info]') |
|
219 |
} |
|
220 |
} |
|
206 | 221 |
}); |
207 | 222 |
|
208 | 223 |
$(window).resize(function() { |
Also available in: Unified diff