Working Copy
authorwunschtacho <wunschtacho@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 23 Oct 2012 11:35:18 +0000 (11:35 +0000)
committerwunschtacho <wunschtacho@735d13b6-9817-0410-8766-e36946ffe9aa>
Tue, 23 Oct 2012 11:35:18 +0000 (11:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/powermail_cond/trunk@67378 735d13b6-9817-0410-8766-e36946ffe9aa

.idea/workspace.xml
Resources/Public/Js/PowermailCond.js
ext_emconf.php

index ba141b8..5245052 100644 (file)
@@ -3,7 +3,8 @@
   <component name="ChangeListManager">\r
     <list default="true" readonly="true" id="500e5988-e13b-4ba1-8a60-e63a97f737a1" name="Default" comment="">\r
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />\r
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Classes/Utility/EidGetFieldlist.php" afterPath="$PROJECT_DIR$/Classes/Utility/EidGetFieldlist.php" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Resources/Public/Js/PowermailCond.js" afterPath="$PROJECT_DIR$/Resources/Public/Js/PowermailCond.js" />\r
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/ext_emconf.php" afterPath="$PROJECT_DIR$/ext_emconf.php" />\r
     </list>\r
     <ignored path="powermail_cond@powermailt347.in2code.de.iws" />\r
     <ignored path=".idea/workspace.xml" />\r
   </component>\r
   <component name="FileEditorManager">\r
     <leaf>\r
-      <file leaf-file-name="EidGetFieldlist.php" pinned="false" current="true" current-in-tab="true">\r
-        <entry file="file://$PROJECT_DIR$/Classes/Utility/EidGetFieldlist.php">\r
+      <file leaf-file-name="PowermailCond.js" pinned="false" current="true" current-in-tab="true">\r
+        <entry file="file://$PROJECT_DIR$/Resources/Public/Js/PowermailCond.js">\r
           <provider selected="true" editor-type-id="text-editor">\r
-            <state line="222" column="27" selection-start="7362" selection-end="7362" vertical-scroll-proportion="0.41213062">\r
+            <state line="208" column="18" selection-start="7445" selection-end="7445" vertical-scroll-proportion="0.24697986">\r
               <folding />\r
             </state>\r
           </provider>\r
         </entry>\r
       </file>\r
-      <file leaf-file-name="Div.php" pinned="false" current="false" current-in-tab="false">\r
-        <entry file="file://$PROJECT_DIR$/Classes/Utility/Div.php">\r
+      <file leaf-file-name="EidSaveInSession.php" pinned="false" current="false" current-in-tab="false">\r
+        <entry file="file://$PROJECT_DIR$/Classes/Utility/EidSaveInSession.php">\r
           <provider selected="true" editor-type-id="text-editor">\r
-            <state line="117" column="20" selection-start="3327" selection-end="3327" vertical-scroll-proportion="-8.384615">\r
+            <state line="31" column="19" selection-start="1308" selection-end="1308" vertical-scroll-proportion="0.0">\r
               <folding />\r
             </state>\r
           </provider>\r
@@ -57,7 +58,6 @@
         <option value="$PROJECT_DIR$/Configuration/TypoScript/PowermailCond.js" />\r
         <option value="$PROJECT_DIR$/oldFiles/static/setup.txt" />\r
         <option value="$PROJECT_DIR$/ext_tables.php" />\r
-        <option value="$PROJECT_DIR$/ext_emconf.php" />\r
         <option value="$PROJECT_DIR$/Classes/Utility/EidReadSession.php" />\r
         <option value="$PROJECT_DIR$/Resources/Public/Css/PowermailCond.css" />\r
         <option value="$PROJECT_DIR$/Configuration/TypoScript/setup.txt" />\r
         <option value="$PROJECT_DIR$/ext_localconf.php" />\r
         <option value="$PROJECT_DIR$/Classes/Utility/EidClearSession.php" />\r
         <option value="$PROJECT_DIR$/Classes/Utility/Div.php" />\r
-        <option value="$PROJECT_DIR$/Resources/Public/Js/PowermailCond.js" />\r
         <option value="$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php" />\r
         <option value="$PROJECT_DIR$/Configuration/TCA/Condition.php" />\r
         <option value="$PROJECT_DIR$/Classes/Utility/EidGetFieldlist.php" />\r
+        <option value="$PROJECT_DIR$/Resources/Public/Js/PowermailCond.js" />\r
+        <option value="$PROJECT_DIR$/ext_emconf.php" />\r
       </list>\r
     </option>\r
   </component>\r
   <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />\r
   <component name="ProjectFrameBounds">\r
-    <option name="x" value="1611" />\r
-    <option name="y" value="-50" />\r
-    <option name="width" value="1873" />\r
-    <option name="height" value="840" />\r
+    <option name="x" value="-8" />\r
+    <option name="y" value="-8" />\r
+    <option name="width" value="1616" />\r
+    <option name="height" value="916" />\r
   </component>\r
   <component name="ProjectLevelVcsManager" settingsEditedManually="true">\r
     <OptionsSetting value="true" id="Add" />\r
       <sortByType />\r
     </navigator>\r
     <panes>\r
+      <pane id="Scope">\r
+        <subPane subId="Project Files">\r
+          <PATH>\r
+            <PATH_ELEMENT USER_OBJECT="Root">\r
+              <option name="myItemId" value="" />\r
+              <option name="myItemType" value="" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+        </subPane>\r
+      </pane>\r
       <pane id="ProjectPane">\r
         <subPane>\r
           <PATH>\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
             <PATH_ELEMENT>\r
-              <option name="myItemId" value="Classes" />\r
+              <option name="myItemId" value="Resources" />\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
             <PATH_ELEMENT>\r
-              <option name="myItemId" value="Utility" />\r
+              <option name="myItemId" value="Public" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Js" />\r
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
           </PATH>\r
-        </subPane>\r
-      </pane>\r
-      <pane id="Scope">\r
-        <subPane subId="Project Files">\r
           <PATH>\r
-            <PATH_ELEMENT USER_OBJECT="Root">\r
-              <option name="myItemId" value="" />\r
-              <option name="myItemType" value="" />\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Resources" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Public" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Resources" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+          </PATH>\r
+          <PATH>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="powermail_cond@powermailt347.in2code.de" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Classes" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
+            </PATH_ELEMENT>\r
+            <PATH_ELEMENT>\r
+              <option name="myItemId" value="Utility" />\r
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />\r
             </PATH_ELEMENT>\r
           </PATH>\r
         </subPane>\r
     <property name="options.splitter.main.proportions" value="0.3" />\r
     <property name="WebServerToolWindowFactoryState" value="true" />\r
     <property name="options.lastSelected" value="web.server" />\r
-    <property name="options.searchVisible" value="true" />\r
     <property name="options.splitter.details.proportions" value="0.2" />\r
+    <property name="options.searchVisible" value="true" />\r
   </component>\r
   <component name="PublishConfig" serverName="in2code" serverId="3ca6b370-8a73-4525-bbbd-e6d3cdda1d7f" autoUpload="true" autoUploadExternalChanges="true">\r
     <servers>\r
       <created>1350570339102</created>\r
       <updated>1350570339102</updated>\r
     </task>\r
-    <option name="localTasksCounter" value="18" />\r
+    <task id="LOCAL-00018" summary="Working Copy">\r
+      <created>1350571666102</created>\r
+      <updated>1350571666102</updated>\r
+    </task>\r
+    <option name="localTasksCounter" value="19" />\r
     <servers />\r
   </component>\r
   <component name="ToolWindowManager">\r
-    <frame x="1611" y="-50" width="1873" height="840" extended-state="0" />\r
+    <frame x="-8" y="-8" width="1616" height="916" extended-state="6" />\r
     <editor active="true" />\r
     <layout>\r
+      <window_info id="File Transfer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32694763" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
       <window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />\r
-      <window_info id="File Transfer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3281412" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
       <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
+      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.15894467" sideWeight="0.3448276" order="1" side_tool="true" content_ui="tabs" />\r
       <window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.15894467" sideWeight="0.6462324" order="0" side_tool="false" content_ui="combo" />\r
       <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />\r
       <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />\r
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
-      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />\r
-      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.1314191" sideWeight="0.32531825" order="1" side_tool="true" content_ui="tabs" />\r
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.1314191" sideWeight="0.66478074" order="0" side_tool="false" content_ui="combo" />\r
+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />\r
       <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
       <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />\r
       <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />\r
       <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />\r
       <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />\r
+      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917964" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />\r
       <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />\r
       <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />\r
       <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />\r
         <state line="44" column="44" selection-start="1420" selection-end="1451" vertical-scroll-proportion="0.090618335" />\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/ext_emconf.php">\r
-      <provider selected="true" editor-type-id="text-editor">\r
-        <state line="36" column="33" selection-start="1146" selection-end="1146" vertical-scroll-proportion="0.5294772">\r
-          <folding />\r
-        </state>\r
-      </provider>\r
-    </entry>\r
     <entry file="file://$PROJECT_DIR$/Classes/Utility/EidReadSession.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="73" column="6" selection-start="2262" selection-end="2262" vertical-scroll-proportion="0.72039473">\r
-          <folding />\r
-        </state>\r
+        <state line="73" column="6" selection-start="2262" selection-end="2262" vertical-scroll-proportion="0.72039473" />\r
       </provider>\r
     </entry>\r
     <entry file="file://$PROJECT_DIR$/Configuration/TypoScript/setup.txt">\r
         <state line="2" column="11" selection-start="50" selection-end="50" vertical-scroll-proportion="0.0" />\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/Classes/Utility/EidSaveInSession.php">\r
-      <provider selected="true" editor-type-id="text-editor">\r
-        <state line="30" column="3" selection-start="1288" selection-end="1288" vertical-scroll-proportion="0.2090164">\r
-          <folding>\r
-            <element signature="e#1285#1518#0" expanded="false" />\r
-          </folding>\r
-        </state>\r
-      </provider>\r
-    </entry>\r
     <entry file="file://$PROJECT_DIR$/ext_localconf.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="24" column="76" selection-start="993" selection-end="1019" vertical-scroll-proportion="0.4473684">\r
-          <folding />\r
-        </state>\r
-      </provider>\r
-    </entry>\r
-    <entry file="file://$PROJECT_DIR$/Resources/Public/Js/PowermailCond.js">\r
-      <provider selected="true" editor-type-id="text-editor">\r
-        <state line="8" column="19" selection-start="307" selection-end="307" vertical-scroll-proportion="0.14498934">\r
-          <folding />\r
-        </state>\r
+        <state line="24" column="76" selection-start="993" selection-end="1019" vertical-scroll-proportion="0.4473684" />\r
       </provider>\r
     </entry>\r
     <entry file="file://$PROJECT_DIR$/Classes/Utility/EidClearSession.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="63" column="64" selection-start="2085" selection-end="2085" vertical-scroll-proportion="0.50328946">\r
-          <folding>\r
-            <element signature="e#1285#1472#0" expanded="false" />\r
-          </folding>\r
-        </state>\r
+        <state line="63" column="64" selection-start="2085" selection-end="2085" vertical-scroll-proportion="0.50328946" />\r
       </provider>\r
     </entry>\r
     <entry file="file://$PROJECT_DIR$/ext_tables.sql">\r
     </entry>\r
     <entry file="file://$PROJECT_DIR$/Configuration/TCA/Condition.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="163" column="55" selection-start="6170" selection-end="6170" vertical-scroll-proportion="0.6407119">\r
-          <folding />\r
-        </state>\r
+        <state line="163" column="55" selection-start="6170" selection-end="6170" vertical-scroll-proportion="0.6407119" />\r
       </provider>\r
     </entry>\r
     <entry file="file://$PROJECT_DIR$/Classes/Utility/FieldlistingBackend.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="160" column="42" selection-start="5616" selection-end="5616" vertical-scroll-proportion="0.90679824">\r
+        <state line="160" column="42" selection-start="5616" selection-end="5616" vertical-scroll-proportion="0.90679824" />\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Classes/Utility/EidGetFieldlist.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="222" column="27" selection-start="7362" selection-end="7362" vertical-scroll-proportion="0.36856747" />\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Classes/Utility/Div.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="32" column="6" selection-start="1188" selection-end="1188" vertical-scroll-proportion="0.023224045" />\r
+      </provider>\r
+    </entry>\r
+    <entry file="file://$PROJECT_DIR$/Classes/Utility/EidSaveInSession.php">\r
+      <provider selected="true" editor-type-id="text-editor">\r
+        <state line="31" column="19" selection-start="1308" selection-end="1308" vertical-scroll-proportion="0.0">\r
           <folding />\r
         </state>\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/Classes/Utility/Div.php">\r
+    <entry file="file://$PROJECT_DIR$/ext_emconf.php">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="117" column="20" selection-start="3327" selection-end="3327" vertical-scroll-proportion="-8.384615">\r
+        <state line="36" column="33" selection-start="1146" selection-end="1146" vertical-scroll-proportion="0.65785813">\r
           <folding />\r
         </state>\r
       </provider>\r
     </entry>\r
-    <entry file="file://$PROJECT_DIR$/Classes/Utility/EidGetFieldlist.php">\r
+    <entry file="file://$PROJECT_DIR$/Resources/Public/Js/PowermailCond.js">\r
       <provider selected="true" editor-type-id="text-editor">\r
-        <state line="222" column="27" selection-start="7362" selection-end="7362" vertical-scroll-proportion="0.41213062">\r
+        <state line="208" column="18" selection-start="7445" selection-end="7445" vertical-scroll-proportion="0.24697986">\r
           <folding />\r
         </state>\r
       </provider>\r
index 426e0b3..71ee78b 100644 (file)
@@ -6,8 +6,7 @@ jQuery(document).ready(function() {
        }
 
        // read values from session
-       var formUid = $('input[name="tx_powermail_pi1[form]"]').val(); // form uid
-       var url = base + '/index.php?eID=powermailcond_readSession&tx_powermailcond_pi1[form]=' + formUid;
+       var url = base + '/index.php?eID=powermailcond_readSession&tx_powermailcond_pi1[form]=' + getFormUid();
        $.ajax({
                url: url, // send to this url
                cache: false, // disable cache (for ie)
@@ -26,7 +25,6 @@ jQuery(document).ready(function() {
        // save values via ajax to session
        $('.powermail_input, .powermail_textarea, .powermail_select, .powermail_radio, .powermail_checkbox').bind('change', function() {
                $this = $(this); // caching
-               var formUid = $('input[name="tx_powermail_pi1[form]"]').val(); // form uid
                var url = base + '/index.php';
                var timestamp = Number(new Date()); // timestamp is needed for a internet explorer workarround (always change a parameter)
                var value = $this.val(); // current value
@@ -35,7 +33,7 @@ jQuery(document).ready(function() {
                }
                var uid = $this.closest('.powermail_fieldwrap').attr('id').substr(20); // current field uid (without "uid")
                var name = $this.attr('name');
-               var params = 'eID=' + 'powermailcond_saveToSession' + '&tx_powermailcond_pi1[form]=' + formUid + '&tx_powermailcond_pi1[uid]=' + uid + '&tx_powermailcond_pi1[value]=' + value + '&ts=' + timestamp;
+               var params = 'eID=' + 'powermailcond_saveToSession' + '&tx_powermailcond_pi1[form]=' + getFormUid() + '&tx_powermailcond_pi1[uid]=' + uid + '&tx_powermailcond_pi1[value]=' + value + '&ts=' + timestamp;
 
                $.ajax({
                        type: 'GET', // type
@@ -82,7 +80,7 @@ function checkConditions(uid) {
        $.ajax({
                type: 'GET', // type
                url: url, // send to this url
-               data: 'eID=' + 'powermailcond_getFieldStatus' + params + '&tx_powermailcond_pi1[formUid]=' + $('input[name="tx_powermail_pi1[form]"]').val(), // add params
+               data: 'eID=' + 'powermailcond_getFieldStatus' + params + '&tx_powermailcond_pi1[formUid]=' + getFormUid(), // add params
                cache: false, // disable cache (for ie)
                success: function(data) { // return values
                        if (data != 'nochange') {
@@ -221,9 +219,8 @@ function getBaseUrl() {
  */
 function clearSession(uid) {
        var url = base + '/index.php';
-       var formUid = $('input[name="tx_powermail_pi1[form]"]').val(); // form uid
        var timestamp = Number(new Date()); // timestamp is needed for a internet explorer workarround (always change a parameter)
-       var params = 'eID=' + 'powermailcond_saveToSession' + '&tx_powermailcond_pi1[form]=' + formUid + '&tx_powermailcond_pi1[uid]=' + uid + '&tx_powermailcond_pi1[value]=&ts=' + timestamp;
+       var params = 'eID=' + 'powermailcond_saveToSession' + '&tx_powermailcond_pi1[form]=' + getFormUid() + '&tx_powermailcond_pi1[uid]=' + uid + '&tx_powermailcond_pi1[value]=&ts=' + timestamp;
 
        $.ajax({
                type: 'GET', // type
@@ -252,4 +249,21 @@ function clearFullSession() {
                        cache: false
                });
        }
+}
+
+/**
+ * Read From uid from DOM
+ *
+ * @return int         Form uid
+ */
+function getFormUid() {
+       var classes = $('.powermail_form:first').attr('class').split(' ');
+       for (var i=0; i < classes.length; i++) {
+               if (classes[i].indexOf('powermail_form_') !== -1) {
+                       var currentClass = classes[i];
+               }
+       }
+
+       var formUid = currentClass.substr(15);
+       return formUid;
 }
\ No newline at end of file
index f2da344..2fd3b90 100644 (file)
@@ -34,7 +34,7 @@ $EM_CONF[$_EXTKEY] = array(
        'CGLcompliance_note' => '',
        'constraints' => array(
                'depends' => array(
-                       'powermail' => '2.0.3-0.0.0',
+                       'powermail' => '2.0.4-0.0.0',
                ),
                'conflicts' => array(
                ),