Project

General

Profile

root / branches / 1.4-sc50 / model / sources / prism / web / widg / nav / resetBtn.uiwidget @ 376

1
<?xml version="1.0"?>
2
<sm:openUiWidget xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns="http://www.w3.org/1999/xhtml" code="resetBtn">
3
	<sm:fillTemplateBuffers>
4
		<sm:standardLibrary codeLib="PaLib"/>
5
	</sm:fillTemplateBuffers>
6
	<sm:content>
7
		<sm:choose>
8
			<sm:when sc:refUri="/prism/web/cnd/isEvalReset.cond">
9
				<div id="resetStorageData" style="display: none;">
10
					<a class="btnReset" onclick="rubisMgr.resetAllDatas();return false;" title="Effacer définitivement toutes mes productions relatives à cette étude de cas" href="#">
11
						<span>;Recommencer</span>
12
						<span class="lnkImg"/>
13
					</a>
14
				</div>
15
				<script type="text/JavaScript">scOnLoads[scOnLoads.length] = {
16
	onLoad: function() {
17
		if(scServices.locationStorage &amp;&amp; scServices.locationStorage.getLocation()) {
18
			if((scServices.storage &amp;&amp; scServices.storage.isStorageActive()) || (scServices.scorm12 &amp;&amp; scServices.scorm12.isScorm12Active()) || (scServices.scorm2k4 &amp;&amp; scServices.scorm2k4.isScorm2k4Active())) {
19
				sc$("resetStorageData").style.display = "";
20
				var vNormalStartBtn =  scPaLib.findNode("des:.normal/ide:startBtn");
21
				if(vNormalStartBtn ) vNormalStartBtn .style.display = "none";
22
			}
23
		}
24
	}
25
}</script>
26
			</sm:when>
27
		</sm:choose>
28
	</sm:content>
29
</sm:openUiWidget>
(5-5/7)