[tuxdroid-svn] r5126 - software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/x
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-07-22 08:52:46
|
Author: remi
Date: 2009-07-22 10:52:32 +0200 (Wed, 22 Jul 2009)
New Revision: 5126
Modified:
software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
Log:
* Duplicated gadget is deleted if you click on the button "cancel" in the configuration page.
Modified: software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl 2009-07-22 07:48:21 UTC (rev 5125)
+++ software_suite_v3/smart-core/smart-server/trunk/data/web_interface/user_01/xsl/gadgets.xsl 2009-07-22 08:52:32 UTC (rev 5126)
@@ -43,6 +43,7 @@
var lastGadgetUuidInAction = "0";
var lastGadgetNameInAction = "0";
var lastGadgetIconInAction = "0";
+ var newGadgetOnEdit = false;
var translationStart = "";
var translationStop = ""
var translationDelete = "";
@@ -455,6 +456,7 @@
{
lastIdx = gadgetsCount - 1;
lastUuid = uuid = gadgets.get("data0").get("gadget_" + lastIdx + "_uuid");
+ newGadgetOnEdit = true;
clickMe("configureId_" + lastUuid);
}
}
@@ -476,12 +478,26 @@
function applyUgc()
{
+ newGadgetOnEdit = false;
if (window.frames.windowGadgetConfigurationContentIFrame && window.frames.windowGadgetConfigurationContentIFrame.applyGadgetConfiguration)
{
window.frames.windowGadgetConfigurationContentIFrame.applyGadgetConfiguration();
}
fillGadgetRows(knowedGadgetsFilter);
}
+
+ function abortApplyUgc()
+ {
+ if (newGadgetOnEdit)
+ {
+ newGadgetOnEdit = false;
+ deleteUgc();
+ }
+ else
+ {
+ newGadgetOnEdit = false;
+ }
+ }
]]>
</script>
</head>
@@ -666,13 +682,13 @@
<xsl:element name="a">
<xsl:attribute name="class">windowBtn</xsl:attribute>
<xsl:attribute name="name">lbOff</xsl:attribute>
+ <xsl:attribute name="onclick">javascript:abortApplyUgc();</xsl:attribute>
<xsl:attribute name="rel">deactivate</xsl:attribute>
<xsl:attribute name="href">#</xsl:attribute><xsl:value-of select="root/translations/cancel"/>
</xsl:element>
</div>
<div class="windowFrame01Bottom"></div>
</div>
-
</body>
</html>
</xsl:template>
|