responsive : viewmodes

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy 2013-06-08 18:58:18 +02:00
parent afd4de26e7
commit 2d18c524eb
2 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -258,10 +258,12 @@ MaterioSearchApiAjax = function(){
function initViewMode(){
$('.viewmode-link').click(function(event){
event.preventDefault();
if(!$(this).is('.active'))
if(!$(this).is('.active')){
$(this).trigger({type:'vm-clicked'});
changeViewMode($(this).attr('rel'), $(this));
}else{
$(this).trigger({type:'vm-clicked-active'});
}
return false;
});
};