| Line 1... |
Line 1... |
| 1 |
$(function(){
|
1 |
$(function(){
|
| - |
|
2 |
if($('.scroll').length>0) {
|
| 2 |
$('.scroll').jscroll({
|
3 |
$('.scroll').jscroll({
|
| 3 |
loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
|
4 |
loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
|
| 4 |
autoTriggerUntil: 3,
|
5 |
autoTriggerUntil: 3,
|
| 5 |
padding: 20,
|
6 |
padding: 20,
|
| 6 |
});
|
7 |
});
|
| - |
|
8 |
}
|
| 7 |
$('.categorytab').on('click','.categorytabcontrol.active',function(){
|
9 |
$('.categorytab').on('click','.categorytabcontrol.active',function(){
|
| 8 |
$(this).toggleClass('active');
|
10 |
$(this).toggleClass('active');
|
| 9 |
$('#preferences-'+$(this).data('id')).addClass('hidden');
|
11 |
$('#preferences-'+$(this).data('id')).addClass('hidden');
|
| 10 |
$(this).parent().parent().children().find('.savecategorypreferences',0).removeClass('savecategorypreferences').addClass('editcategorypreferences').html('Edit').removeClass('btn-success');
|
12 |
$(this).parent().parent().children().find('.savecategorypreferences',0).removeClass('savecategorypreferences').addClass('editcategorypreferences').html('Edit').removeClass('btn-success');
|
| 11 |
});
|
13 |
});
|