calendar visualization popup view button behaviour

aclertant

dedlefou
Hello,

I created a calendar render as read only.

When I open up an event I got a very nice popup with only one button (the view button with icon-eye class). Perfect !

But when I click on it an other (larger) popup appear mentionning "add/edit". As I choose read only, hopefully it's not editable.

My question is how can I change this behavior to keep the small popup and making the eye button going to my record (I mean his own page)

I think it's in the javascript here : /plugins/fabrik_visualization/calendar/calendar.js

But this file is very impressive for me :confused:

Can someone may explain me how to suppress this second popup and adapt the link to a the regular page ?

Thank's a lot

Ps: I use j! 3,3,3 and fabrik 3,1 with the bootstrap template for this calendar visualisation. I did a git update yesterday.
 
In calender view "Options" set Show Full Details =YES, this will open the details view directly.
 
I tried this option but in fact it's worst...

I dont keep the small popup and it open up directly the full record in a (larger) popup.

To be clear in the picture below there is what I want to keep. The number 1 is exactly what I need but when you press on it I would like to go on a main page like the second picture.

1:
1.png


the second picture :
2.png


I hope this is more clear.
Thank's a lot for your reply ;o)
 
Ok I got it,

on line 1051 in /plugin/fabrik_visualization/calendar/calendar.js
I replace this
PHP:
addEvForm: function (o)
    {
        if (typeof(jQuery) !== 'undefined') {
            jQuery(this.popOver).popover('hide');
        }
     
        this.windowopts.id = 'addeventwin';
        var url = 'index.php?option=com_fabrik&controller=visualization.calendar&view=visualization&task=addEvForm&format=raw&listid=' + o.listid + '&rowid=' + o.rowid;
        url += '&jos_fabrik_calendar_events___visualization_id=' + this.options.calendarId;
        url += '&visualizationid=' + this.options.calendarId;
     
        if (o.nextView) {
            url += '&nextview=' + o.nextView;
        }
     
        url += '&fabrik_window_id=' + this.windowopts.id;
 
        if (typeof(this.doubleclickdate) !== 'undefined') {
            url += '&start_date=' + this.doubleclickdate;
        }
     
        this.windowopts.type = 'window';
        this.windowopts.contentURL = url;
        var f = this.options.filters;
 
        this.windowopts.onContentLoaded = function (win)
        {
            f.each(function (o) {
                if (document.id(o.key)) {
                    switch (document.id(o.key).get('tag')) {
                    case 'select':
                        document.id(o.key).selectedIndex = o.val;
                        break;
                    case 'input':
                        document.id(o.key).value = o.val;
                        break;
                    }
                }
            });
            win.fitToContent(false);
        }.bind(this);
     
        Fabrik.getWindow(this.windowopts);
    },
 
_highLightToday: function () {

by this

PHP:
addEvForm: function (o)
    {
        if (typeof(jQuery) !== 'undefined') {
            jQuery(this.popOver).popover('hide');
        }
     
        this.windowopts.id = 'addeventwin';
        var url = 'index.php?option=com_fabrik&view=details&formid=' + o.listid + '&itemid=' + o.rowid;
 
        //alert(url);
        document.location = url;
    },
 
    _highLightToday: function () {
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top