if( ! Fse ) Fse = {}; if( ! Fse.CONF ) Fse.CONF = {}; Fse.CONF.displayNote = function(pid,ptype,nid,token){ var sURL = Fse.EVT.getHandler() + '?view=conferenceApp&ajax=confNote&mode=direct&sv=true&nid=' + nid + '&nToken=' + token + '&pType=' + ptype + '&pId=' + pid; var _title = "Conference Notes" var oOptions = { src : sURL, title : _title, width : "600px", namedButtons : "Close", }; Fse.DialogManager.show( "notesDialog$", oOptions ); } Fse.CONF.changeCalendar = function (calId){ var myLink = Fse.EVT.getHandler() + '?view=conferenceApp&ajax=confNote&mode=direct&calid=' + calId; window.location=myLink; } Fse.CONF.toggleQuestion = function(rowId){ var x = 'btn' + rowId; var _button = document.getElementById(x); var x = 'question' + rowId; var _question = document.getElementById(x); if (_button.className == 'conf_ajaxExpand'){ _button.className = 'conf_ajaxCollapse'; _question.className = 'showQuestion'; }else{ _button.className = 'conf_ajaxExpand'; _question.className = 'noShowQuestion'; }; } Fse.CONF.setMeetingAttendee = function( userid, act, pType, pId, pToken, apptid, firstname, lastname, title ){ var _url = Fse.EVT.getHandler() + '?view=conferenceApp&ajax=confResources&mode=direct&userid=' + userid + '&act=' + act + '&pType=' + pType + '&pId=' + pId + '&pToken=' + pToken + '&apptid=' + apptid + '&fname=' + firstname + '&lname=' + lastname + '&title=' + title; Fse.Ajax.updateContent( _url, 'meetingAttendees'); } Fse.CONF.doContactNew = function(nCdrId,nCdrTk,apptid) { var fnOnSuccess = function(){ Fse.CONF.UpdateResourcesTab(nCdrId,nCdrTk,apptid); } var _fseWaitPanel = 'false'; var oDialogOptions = { title : "Add New Contact", src : Fse.EVT.getHandler() + "?mode=direct&ajax=addDistributorContactDialog&pid=" + nCdrId + "&ptoken=" + nCdrTk + "&apptid=" + apptid, width : "650px", onSuccess : fnOnSuccess }; Fse.DialogManager.show( "addDistributorContactDialog$", oDialogOptions ); } Fse.CONF.UpdateResourcesTab = function(nCdrId,nCdrTk,apptid){ var _url = Fse.EVT.getHandler() + '?view=conferenceApp&ajax=confResources&mode=direct&act=refresh&pId=' + nCdrId + '&pToken=' + nCdrTk + '&apptid=' + apptid; Fse.Ajax.updateContent( _url, 'meetingAttendees'); } Fse.CONF.eventDialog = function(eventid,tab,day,calendarid){ Fse.CDR.eventDialog(eventid, Fse.CONF.updSchedule,tab,day,calendarid) } Fse.CONF.updSchedule = function(){ var _url = Fse.EVT.getHandler() + '?view=conferenceApp&ajax=updSchedule&mode=direct&act=refresh'; Fse.Ajax.updateContent( _url, 'ajx_schedule'); } Fse.CONF.saveAnswers = function(frm,act){ myForm = document.getElementById(frm); sAction = document.getElementById("saveAction"); sAction.value = act; myForm.submit(); } Fse.CONF.addEmailRecipient = function(sAddress){ var oInput = document.getElementById('to'); if (oInput.value.trim() == ""){ oInput.value = sAddress; } else { oInput.value = oInput.value + "," + sAddress; } } Fse.CONF.PartnerSearch = function( calendarid ){ var sURL = Fse.EVT.getHandler() + '?view=conferenceApp&ajax=confsearch&mode=direct&sv=true&calid=' + calendarid; var _title = "Attendee Search" var oOptions = { src : sURL, title : _title, width : "600px", namedButtons : "Close", }; Fse.DialogManager.show( "partnerSearchDialog$", oOptions ); } Fse.CONF.partnerSearchResults = function(cdrId){ var _url = Fse.EVT.getHandler() + '?view=conferenceApp&ajax=confsearchResults&mode=direct&pid=' + cdrId; Fse.Ajax.updateContent( _url, 'confSrchResults'); } Fse.CONF.partnerSearchGoto = function(pid, pToken, apptid, calid, day){ var _url = Fse.EVT.getHandler() + '?view=conferenceApp&mode=direct&pType=CDR&pId=' + pid + '&pToken=' + pToken + '&apptId=' + apptid + '&calid=' + calid + '&day=' + day; window.location.assign(_url) } //overwrite function that does not work here for some reason Fse.Ajax.showWait = function( nDelayMs, sTitle ) { };