responsive : viewmodes
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
afd4de26e7
commit
2d18c524eb
File diff suppressed because one or more lines are too long
@ -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;
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user