mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
faster load of list view class
This commit is contained in:
parent
b3979514cd
commit
b30e26513f
1 changed files with 4 additions and 9 deletions
|
@ -75,6 +75,10 @@
|
|||
<% end %>
|
||||
|
||||
<div id="filesDisplay" class="files">
|
||||
<script>
|
||||
if(localStorage && localStorage.getItem('viewType') == 'list')
|
||||
$('#filesDisplay').addClass('list-view')
|
||||
</script>
|
||||
<div id="uploadingOverlay" class="uploading-overlay" style="display: none">
|
||||
<div class="uploading">
|
||||
<p>Uploading, please wait...</p>
|
||||
|
@ -341,13 +345,4 @@
|
|||
|
||||
$('#filesDisplay').removeClass('list-view')
|
||||
}
|
||||
|
||||
$(function() {
|
||||
if(!localStorage)
|
||||
return
|
||||
|
||||
if(localStorage.getItem('viewType') == 'list')
|
||||
$('#filesDisplay').addClass('list-view')
|
||||
})
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue