[Vtigercrm-commits] [vtiger-commits] r7586 - in /vtigercrm/trunk: Smarty/templates/OrgSharingDetailView.tpl modules/Users/CreateSharingRule.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 27 11:29:49 EDT 2006


Author: richie
Date: Tue Jun 27 09:29:44 2006
New Revision: 7586

Log:
rule constructed during Edit mode

Modified:
    vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
    vtigercrm/trunk/modules/Users/CreateSharingRule.php

Modified: vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl Tue Jun 27 09:29:44 2006
@@ -185,21 +185,27 @@
 </table>
 <div id="tempdiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
 <script>
-
 function callEditDiv(modulename,mode,id)
 {ldelim}
-	$("status").style.display="inline";
-	new Ajax.Request(
-		'index.php',
-		{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
-			method: 'post',
-			postBody: 'module=Users&action=UsersAjax&orgajax=true&mode='+mode+'&sharing_module='+modulename+'&shareid='+id,
-			onComplete: function(response) {ldelim}
-				$("status").style.display="none";
-				$("tempdiv").innerHTML=response.responseText;
-			{rdelim}
-		{rdelim}
-	);
+        $("status").style.display="inline";
+        new Ajax.Request(
+                'index.php',
+                {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
+                        method: 'post',
+                        postBody: 'module=Users&action=UsersAjax&orgajax=true&mode='+mode+'&sharing_module='+modulename+'&sh
+areid='+id,
+                        onComplete: function(response) {ldelim}
+                                $("status").style.display="none";
+                                $("tempdiv").innerHTML=response.responseText;
+                                if(mode == 'edit')
+                                {ldelim}
+                                        setTimeout("",10000);
+                                        var related = $('rel_module_lists').value;
+                                        fnwriteRules(modulename,related);
+                                {rdelim}
+                        {rdelim}
+                {rdelim}
+        );
 {rdelim}
 
 function fnwriteRules(module,related)

Modified: vtigercrm/trunk/modules/Users/CreateSharingRule.php
==============================================================================
--- vtigercrm/trunk/modules/Users/CreateSharingRule.php (original)
+++ vtigercrm/trunk/modules/Users/CreateSharingRule.php Tue Jun 27 09:29:44 2006
@@ -246,7 +246,7 @@
 <input type="hidden" name="sharing_module" value="'.$sharing_module.'">
 <input type="hidden" name="shareId" value="'.$shareid.'">
 <input type="hidden" name="mode" value="'.$mode.'">
-
+<input type="hidden" id="rel_module_lists" name="rel_module_lists" value="'.$relatedmodule.'">
 <div id="sharingRule" class="fixedLay">
 <table width="100%" border="0" cellpadding="3" cellspacing="0">
 <tr>





More information about the vtigercrm-commits mailing list