Commit 1e02b89c by Bence Dányi

webui: whitespace fix

parent f84f4f68
...@@ -423,16 +423,16 @@ $(function() { ...@@ -423,16 +423,16 @@ $(function() {
user_boxes.splice(i, 1); user_boxes.splice(i, 1);
boxes[current_user] = user_boxes; boxes[current_user] = user_boxes;
window.localStorage.setItem('hidden_boxes', JSON.stringify(boxes)); window.localStorage.setItem('hidden_boxes', JSON.stringify(boxes));
$('#toggle-box-'+id).attr('src', '/static/icons/eye-half.png'); $('#toggle-box-' + id).attr('src', '/static/icons/eye-half.png');
$('#toggle-box-'+id).parent().parent().parent().next().slideDown(700); $('#toggle-box-' + id).parent().parent().parent().next().slideDown(700);
return; return;
} }
} }
user_boxes.push(id); user_boxes.push(id);
boxes[current_user] = user_boxes; boxes[current_user] = user_boxes;
$('#toggle-box-'+id).attr('src', '/static/icons/eye.png'); $('#toggle-box-' + id).attr('src', '/static/icons/eye.png');
$('#toggle-box-'+id).parent().parent().parent().next().slideUp(700); $('#toggle-box-' + id).parent().parent().parent().next().slideUp(700);
console.log($('#toggle-box-'+id).parent().parent().parent().next()[0]) console.log($('#toggle-box-' + id).parent().parent().parent().next()[0])
window.localStorage.setItem('hidden_boxes', JSON.stringify(boxes)); window.localStorage.setItem('hidden_boxes', JSON.stringify(boxes));
} }
...@@ -448,16 +448,16 @@ $(function() { ...@@ -448,16 +448,16 @@ $(function() {
return false; return false;
} }
$('.toggle-box').each(function(){ $('.toggle-box').each(function() {
var id=$(this).data('id'); var id = $(this).data('id');
$(this).click(function(){ $(this).click(function() {
toggle_box(id); toggle_box(id);
}); });
if(box_hidden(id)){ if (box_hidden(id)) {
$(this).attr('src','/static/icons/eye.png'); $(this).attr('src', '/static/icons/eye.png');
$(this).parent().parent().parent().next().hide(); $(this).parent().parent().parent().next().hide();
} else { } else {
$(this).attr('src','/static/icons/eye-half.png'); $(this).attr('src', '/static/icons/eye-half.png');
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment