Revision 6da417da snf-astakos-app/astakos/im/static/im/js/common.js
b/snf-astakos-app/astakos/im/static/im/js/common.js | ||
---|---|---|
208 | 208 |
e.preventDefault(); |
209 | 209 |
$(this).toggleClass('open'); |
210 | 210 |
$(this).parents('tr').next('tr').toggle(); |
211 |
check_table_info(); |
|
211 |
|
|
212 | 212 |
}) |
213 | 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 |
} |
|
221 | 214 |
}); |
222 | 215 |
|
223 | 216 |
$(window).resize(function() { |
Also available in: Unified diff