You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 15-04-2013 15:37:36

snikookar
Contributors
Registered: 23-03-2013
Posts: 37

Problem with going to another group

Hi,

In version 3 when we use for example '/#&group3' in a tile URL, by clicking on that tile we move to the group3. But it does not work in V4. I click on the tile and the URL is changed to localhost:80/#&social, but nothing happens in the page.

Could you please let me know how I can fix it?

Regards,

Offline

#2 15-04-2013 17:33:56

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Problem with going to another group

It's not really a bug, it is done on purpose. But to do what you want, you need to add a class argument to your tile ("classes"=>"yourClass");

and add this javascript code somewhere, preferably into a new plugin; (do NOT alter core files of the js folder because they can be overwritten with updates)

$("#tileContainer").on("click",".yourClass",function(){
            $group.goTo(1); // first group is 0
});

Offline

#3 17-04-2013 17:05:40

snikookar
Contributors
Registered: 23-03-2013
Posts: 37

Re: Problem with going to another group

Thank you for replying.

I put the code below in the functions.js, but it does not work.

$("#tileContainer").on("click",".goEnd",function(){
            $group.goTo(5); // first group is 0
});

Offline

#4 17-04-2013 17:13:11

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Problem with going to another group

Hm, try to change it to

$(document).on("click",".goEnd",function(){
            $group.goTo(5); // first group is 0
});

I'll check it myself later.

EDIT; Okay, tested and working.

Offline

#5 18-04-2013 11:59:05

snikookar
Contributors
Registered: 23-03-2013
Posts: 37

Re: Problem with going to another group

Many thx smile

Offline

Board footer

Powered by FluxBB