-
-
Save Nikki0/a6cda50097565541cdd65ed246c97107 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 && view != 'list') | |
display(view); | |
else { | |
$('.display').find('li#list').addClass('selected'); | |
display("list"); | |
} | |
$(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