Project

General

Profile

« Previous | Next » 

Revision 1445

migration 3.6.003

View differences:

persistDataUi.uiwidget
1
<?xml version="1.0" encoding="UTF-8"?>
2
<sm:openUiWidget xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" code="persistDataUi">
3
	<sm:content>
4
		<div xmlns="http://www.w3.org/1999/xhtml" id="gotoLastLocation" style="display: none;">
5
			<sm:WTooltip commonClass="ttSimple">
6
				<sm:label>
7
					<a href="#" onclick="scServices['scLoad'].loadFromRoot(scServices.locationStorage.getLocation()); return false;" accesskey="o">Ouvrir la dernière page consultée</a>
8
				</sm:label>
9
				<sm:labelTitle>Retrouver la dernière page consultée du module</sm:labelTitle>
10
				<sm:tooltip/>
11
			</sm:WTooltip>
12
		</div>
13
		<div xmlns="http://www.w3.org/1999/xhtml" id="resetStorageData" style="display: none;">
14
			<sm:WTooltip commonClass="ttSimple">
15
				<sm:label>
16
					<a href="#" onclick="scServices.storage.resetData(); window.location.reload(); return false;" accesskey="r">Reinitialiser le module</a>
17
				</sm:label>
18
				<sm:labelTitle>Effacer définitivement toutes mes productions relatives à ce module</sm:labelTitle>
19
				<sm:tooltip>
20
					<sm:behavior trigger="onmouseover"/>
21
					<sm:position>
22
						<sm:relativeToAnchor horizontal="rightAlign" vertical="belowElement" verticalOffset="5"/>
23
					</sm:position>
24
					<sm:ttContent>Effacer définitivement toutes mes productions relatives à ce module (annotations, réponses aux exercices...) enregistrées dans mon ordinateur</sm:ttContent>
25
				</sm:tooltip>
26
			</sm:WTooltip>
27
		</div>
28
		<script xmlns="http://www.w3.org/1999/xhtml">scOnLoads[scOnLoads.length] = {
29
 onLoad: function() {
30
  if(scServices.locationStorage &amp;&amp; scServices.locationStorage.getLocation()) {
31
   $("gotoLastLocation").style.display = "";
32
   if(scServices.storage &amp;&amp; scServices.storage.isStorageActive()) $("resetStorageData").style.display = "";
33
  }
34
 }
35
}
36

  
37
</script>
38
	</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="persistDataUi">
2
	<sm:content>
3
		<div xmlns="http://www.w3.org/1999/xhtml" id="gotoLastLocation" style="display: none;">
4
			<sm:WTooltip widgetClass="ttSimple">
5
				<sm:label>
6
					<a href="#" onclick="scServices['scLoad'].loadFromRoot(scServices.locationStorage.getLocation()); return false;" accesskey="o">Ouvrir la dernière page consultée</a>
7
				</sm:label>
8
				<sm:labelTitle>Retrouver la dernière page consultée du module</sm:labelTitle>
9
				<sm:tooltip/>
10
			</sm:WTooltip>
11
		</div>
12
		<div xmlns="http://www.w3.org/1999/xhtml" id="resetStorageData" style="display: none;">
13
			<sm:WTooltip widgetClass="ttSimple">
14
				<sm:label>
15
					<a href="#" onclick="scServices.storage.resetData(); window.location.reload(); return false;" accesskey="r">Reinitialiser le module</a>
16
				</sm:label>
17
				<sm:labelTitle>Effacer définitivement toutes mes productions relatives à ce module</sm:labelTitle>
18
				<sm:tooltip>
19
					<sm:behavior trigger="onmouseover"/>
20
					<sm:position>
21
						<sm:relativeToAnchor horizontal="rightAlign" vertical="belowElement" verticalOffset="5"/>
22
					</sm:position>
23
					<sm:ttContent>Effacer définitivement toutes mes productions relatives à ce module (annotations, réponses aux exercices...) enregistrées dans mon ordinateur</sm:ttContent>
24
				</sm:tooltip>
25
			</sm:WTooltip>
26
		</div>
27
		<script xmlns="http://www.w3.org/1999/xhtml">scOnLoads[scOnLoads.length] = {
28
 onLoad: function() {
29
  if(scServices.locationStorage &amp;&amp; scServices.locationStorage.getLocation()) {
30
   $("gotoLastLocation").style.display = "";
31
   if(scServices.storage &amp;&amp; scServices.storage.isStorageActive()) $("resetStorageData").style.display = "";
32
  }
33
 }
34
}
35

  
36
</script>
37
	</sm:content>
39 38
</sm:openUiWidget>

Also available in: Unified diff