formID = application.ptPhotoGallery.getPhotoFormID();
//Path to open the ligthbox to
AjaxPath = application.ADF.ajaxProxy;
//Bean to preform add/edit
AjaxBean = "photoForms";
AjaxMethod = "photoAddEdit";
//Bean to preform deletion
AjaxDeleteBean = "photoForms";
AjaxDeleteMethod = "photoDeleteForm";
sortColumn = "Title";
sortValue = request.DataSheetRow[sortColumn][Request.DataSheetRow.CurrentRow];
//*******Modification below this should not be needed.*******
pgDataSheetModFooterJS = "";
formID = edata.MetadataForm;
mouseoverJS = "jQuery(this).addClass('ui-state-hover')";
mouseoutJS = "jQuery(this).removeClass('ui-state-hover')";
addEditLink = "#ajaxPath#?bean=#AjaxBean#&method=#AjaxMethod#&dataPageId=#Request.DatasheetRow.pageid#&title=Edit Photo&lbAction=refreshParent";
deleteLink = "#ajaxPath#?bean=#AjaxDeleteBean#&method=#AjaxDeleteMethod#&dataPageid=#Request.DatasheetRow.pageid#&formid=#formID#&title=Delete&lbAction=refreshParent";
application.ptPhotoGallery.scripts.loadJQuery();
application.ptPhotoGallery.scripts.loadJQueryUI();
application.ptPhotoGallery.scripts.loadADFLightbox();
//initADFLB();
jQuery(document).on('click','.ds-icons,.CS_DataSheet_HeaderItem_First_Column,.CS_DataSheet_HeaderItem_Column',function() {
initADFLB();
});
// Load the CSS as a unregistered Resource
application.ptPhotoGallery.scripts.loadUnregisteredResource("/ADF/apps/pt_photo_gallery/style/ptPhotoGallery.css","stylesheet","head","tertiary");
// Load the inline JS as a JS Resource
if ( eparam.permitClientSideSort )
application.ADF.scripts.addFooterJS(pgDataSheetModFooterJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY
|
|