-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathParameterizedFixletsDescription.html
39 lines (39 loc) · 1.58 KB
/
ParameterizedFixletsDescription.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<DIV id=fixletMessage2 class=FixletMessage>
<DIV id = paramFixletDescription>
<P>
This is sample Fixlet which will show to read library from embeded Fixlet
Enter the required information below and click on take action.
</P>
</DIV>
<script>
loaded = false;
var CODE_SITE_NAME = 'BES Support' ;
function loadScript (siteName, callback) {
loaded = false;
var relevanceQuery ='unique value of values of mime fields whose (name of it = "vrt_utils.js") of fixlets whose ( task flag of it AND "Parameterized Fixlet Library" = name of it ) of bes sites whose( \"' + siteName + '\" = name of it )'
var code = EvaluateRelevance(relevanceQuery);
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
script.type = "text/javascript";
script.text = code;
head.appendChild(script);
callback();
}
function scriptLoaded(){
if (!loaded){
if ( typeof FixletUtils !== 'undefined') {
loaded = true;
/*
* Pleas Note: The following code will be moved to library with next publish of lib and user will have to only call method
*/
var relQuery = '(messages of it) of fixlets whose ( task flag of it AND "Parameterized Fixlet Library" = name of it ) of bes sites whose( \"' + CODE_SITE_NAME + '\" = name of it )';
var messages = EvaluateRelevance(relQuery);
var regex = /\s*<DIV id=globalizationMessageDiv style="display:none;">([\x00-\x7F]+)\s*<\/Div>/i;
var matches = regex.exec(messages);
matches[1]=matches[1].replace(/<br>/gi,"");
eval(matches[1]);
FixletUtils.initFixletRender();
} } }
loadScript(CODE_SITE_NAME, scriptLoaded);
</script>
<DIV class=FixletProperty></DIV></DIV>