Pirakavi 0 Newbie Poster

How can I add href link inside the eventRender and redirect another page with id?

function calender(data) {      

        if (0 !== $("#m_calendar").length) {
            spinner.hide();
            var e = moment().startOf("day");
            e.format("YYYY-MM"),
                e.clone().subtract(1, "day").format("YYYY-MM-DD"),
                e.format("YYYY-MM-DD"),
                e.clone().add(1, "day").format("YYYY-MM-DD"),
                $("#m_calendar").fullCalendar({
                    header: {
                        left: "prev,next today", center: "title", right: "month,agendaWeek,agendaDay,listWeek"
                    }
                    , editable: !0, eventLimit: !0, navLinks: !0, backgroundColor: !1,

                    events: data, eventRender: function (e, t) {
                        t.hasClass("fc-day-grid-event") ? (t.data("content", e.description), t.data("placement", "top"), mApp.initPopover(t)) : t.hasClass("fc-time-grid-event") ? t.find(".fc-title").append('<div class="fc-description">' + e.description + "</div>") : 0 !== t.find(".fc-list-item-title").lenght && t.find(".fc-list-item-title").append('<div class="fc-description">' + e.description + "</div>")
                    }

                });
        }
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.