Revision f46c95c4 snf-astakos-app/astakos/im/static/im/js/common.js
b/snf-astakos-app/astakos/im/static/im/js/common.js | ||
---|---|---|
229 | 229 |
$(this).hide(); |
230 | 230 |
}) |
231 | 231 |
|
232 |
$('.stats .bar').each(function(){ |
|
233 |
h=parseInt($(this).parent('li').height()); |
|
234 |
g=(h-32)/2; |
|
235 |
$(this).css('marginTop',g) |
|
232 |
// quota form actions |
|
233 |
|
|
234 |
$('.quotas-form ul li a').click(function(e){ |
|
235 |
e.preventDefault(); |
|
236 |
$(this).addClass('selected'); |
|
237 |
var id = $(this).attr('id'); |
|
238 |
$('.quotas-form fieldset').each(function() { |
|
239 |
if($(this).hasClass(id)) { |
|
240 |
$(this).show('slow'); |
|
241 |
} |
|
242 |
}); |
|
243 |
|
|
244 |
}); |
|
245 |
|
|
246 |
$('.quotas-form fieldset .delete').click(function(e){ |
|
247 |
e.preventDefault(); |
|
248 |
$(this).parents('fieldset').find('input').val(''); |
|
249 |
$(this).parents('fieldset').hide('slow'); |
|
250 |
fieldsetClass = $(this).parents('fieldset').attr('class').replace('quota ', ''); |
|
251 |
$('.quotas-form ul li a').each(function() { |
|
252 |
if($(this).attr('id')==fieldsetClass) { |
|
253 |
$(this).removeClass('selected'); |
|
254 |
} |
|
255 |
}); |
|
256 |
|
|
257 |
|
|
236 | 258 |
}) |
237 | 259 |
|
238 | 260 |
|
239 |
}); |
|
240 |
|
|
261 |
|
|
241 | 262 |
$(window).resize(function() { |
242 | 263 |
|
243 | 264 |
setContainerMinHeight('.container .wrapper'); |
Also available in: Unified diff