-
-
Save Nikki0/e2238c745339035c4bc24ac1c3aa036d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bindGrid() | |
{ | |
var view = $.totalStorage('display'); | |
if (!view && (typeof displayList != 'undefined') && displayList) | |
view = 'list'; | |
if (view && view != 'grid') | |
display(view); | |
else | |
$('.display').find('li#grid').addClass('selected'); | |
$(document).on('click', '#grid', function(e){ | |
e.preventDefault(); | |
display('grid'); | |
}); | |
$(document).on('click', '#list', function(e){ | |
e.preventDefault(); | |
display('list'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment