Changes in orbit_bar and js in announcements

This commit is contained in:
Christophe Vilayphiou committed 2012-02-23 15:51:33 +08:00
1 parent 48d94d5e15
commit ba4d71a026
18 files changed
+127 -51

No files matched your search

+15 -12
View File
@@ -29,18 +29,21 @@ $(document).ready(function(){
placement: "left"
});
var $role = $('.select-role');
$('.privacy').each(function($i) {
$(this).click(function() {
switch ($i) {
case 0:
$role.slideUp(300);
break;
case 1:
$role.slideDown(300);
break;
}
});
$(document).on('click', '.privacy', function() {
switch ($(this).val()) {
case 'true':
$(this).parents('.controls').children('.select-role').slideUp(300);
break;
case 'false':
$(this).parents('.controls').children('.select-role').slideDown(300);
break;
}
});
$(document).on('click', '.toggle-tr-edit', function() {
$(this).parents('tr').next('.qe-block').removeClass('hide');
$(this).parents('tr').next('.qe-block').find('.qe-edit-div').addClass('hide');
$(this).parents('tr').next('.qe-block').find('#qe-' + $(this).attr('rel')).toggleClass('hide');
});
/*tinyscrollbar&windows-Size*/