Name
sn_ex_sp.ContentSearchUtilsSNC
Description
WARNING Customers should NOT modify this script The purpose of this script include is to provide default behaviours for the ContentSearchUtilsSNC script include. To change the behaviour of these methods (or add new methods), Customers should override/add new methods to the ContentSearchUtils script include.
Script
var ContentSearchUtilsSNC = Class.create();
ContentSearchUtilsSNC.EVENTS = {
AIS_MODE_CHANGE_EVENT: "sn-esc#aisModeChangeEvent",
AIS_REFRESH_RESULTS_EVENT: "sn-esc#aisRefreshResultsEvent",
AIS_RESULTS_UPDATED_EVENT: "sn-esc#aisResultsUpdatedEvent",
AIS_LOADING_EVENT: "sn-esc#aisLoadingEvent"
};
ContentSearchUtilsSNC.prototype = {
initialize: function() {
},
getInstanceEvents: function(instanceId){
var modifiedEvents = this.getEvents();
var concatInstanceId = instanceId ? instanceId : '';
Object.keys(modifiedEvents).forEach(function(key){
modifiedEvents[key] = concatInstanceId + '#' + modifiedEvents[key];
});
return modifiedEvents;
},
getEvents: function(){
return ContentSearchUtilsSNC.EVENTS;
},
type: 'ContentSearchUtilsSNC'
};
Sys ID
032d28e367325110238b16f688f922db