Project

General

Profile

« Previous | Next » 

Revision 1445

migration 3.6.003

View differences:

courseMemorizer.uiwidget
1
<?xml version="1.0" encoding="UTF-8"?>
2
<sm:openUiWidget code="courseRetriever" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
3
	<sm:fillTemplateBuffers>
4
		<sm:standardLibrary codeLib="PaLib"/>
5
	</sm:fillTemplateBuffers>
6
	<sm:content>
7
		<script type="text/javascript" xmlns="http://www.w3.org/1999/xhtml">var courseMemorizer = {
8
 pathToolBtn : &quot;ide:tplLft/des:.toolsBtn&quot;,
9
 memorize : function(){
10
 document.cookie = &quot;courseUrl=&quot;+escape(document.location.href);
11
 },
12
 onLoad : function() {
13
 var vToolBtn = scPaLib.findNode(this.pathToolBtn);
14
 if(vToolBtn) vToolBtn.onclick=this.memorize;
15
 },
16
 loadSortKey : &quot;ZZ&quot;
17
}
18
scOnLoads[scOnLoads.length] = courseMemorizer;</script>
19
	</sm:content>
1
<?xml version="1.0" encoding="UTF-8"?><sm:openUiWidget xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" code="courseRetriever">
2
	<sm:fillTemplateBuffers>
3
		<sm:standardLibrary codeLib="PaLib"/>
4
	</sm:fillTemplateBuffers>
5
	<sm:content>
6
		<script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript">var courseMemorizer = {
7
 pathToolBtn : "ide:tplLft/des:.toolsBtn",
8
 memorize : function(){
9
 document.cookie = "courseUrl="+escape(document.location.href);
10
 },
11
 onLoad : function() {
12
 var vToolBtn = scPaLib.findNode(this.pathToolBtn);
13
 if(vToolBtn) vToolBtn.onclick=this.memorize;
14
 },
15
 loadSortKey : "ZZ"
16
}
17
scOnLoads[scOnLoads.length] = courseMemorizer;</script>
18
	</sm:content>
20 19
</sm:openUiWidget>

Also available in: Unified diff