[Vtigercrm-commits] [vtiger-commits] r10558 - in /vtigercrm/branches/5.0.3: Smarty/templates/OrgSharingDetailView.tpl include/js/general.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 4 11:19:23 EDT 2007
Author: saraj
Date: Wed Apr 4 09:19:16 2007
New Revision: 10558
Log:
fix for ie -> settings-sharing access ->Reclculate sharing -->ui issue. Fixes #3466 --minnie
Modified:
vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl
vtigercrm/branches/5.0.3/include/js/general.js
Modified: vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/OrgSharingDetailView.tpl Wed Apr 4 09:19:16 2007
@@ -194,22 +194,22 @@
<div id="tempdiv" style="display:block;position:absolute;width:400px;"></div>
<!-- For Disabling Window -->
-<div id="confId" class='veil_new' style="display:none;">
-<table class="options" border="0" cellpadding="18" cellspacing="0">
+<div id="confId" class='veil_new small' style="display:none;">
+<table class="options small" border="0" cellpadding="18" cellspacing="0">
<tr>
- <td class="big" align="center">
- <h2>{$CMOD.LBL_RECALC_MSG}</h2>
+ <td align="center" nowrap style="color:#FFFFFF;font-size:15px;">
+ <b>{$CMOD.LBL_RECALC_MSG}</b>
</td>
<br>
<tr>
- <td align="center"><input type="button" value="{$CMOD.LBL_YES}" onclick="return disableStyle('confId');"> <input type="button" value=" {$CMOD.LBL_NO} " onclick="$('freeze').style.display='none';$('confId').style.display='none'; "></td>
+ <td align="center"><input type="button" value="{$CMOD.LBL_YES}" onclick="return disableStyle('confId');"> <input type="button" value=" {$CMOD.LBL_NO} " onclick="showSelect();$('confId').style.display='none';document.body.removeChild($('freeze'));"></td>
</tr>
</tr>
</table>
</div>
-<div id="divId" class="veil_new" style="display:none;top:0px;left:0px;">
-<table class="optioncontainer" border="0" cellpadding="18" cellspacing="0">
+<div id="divId" class="veil_new" style="position:absolute;width:100%;display:none;top:0px;left:0px;">
+<table border="5" cellpadding="0" cellspacing="0" align="center" style="vertical-align:middle;width:100%;height:100%;">
<tbody><tr>
<td class="big" align="center">
<img src="{$IMAGE_PATH}plsWaitAnimated.gif">
@@ -291,14 +291,24 @@
$('orgSharingform').action.value = 'RecalculateSharingRules';
$('orgSharingform').submit();
$(id).style.display = 'none';
- $('divId').style.display = 'block';
+
+ if(browser_ie && (gBrowserAgent.indexOf("msie 7.")!=-1))//for IE 7
+ {ldelim}
+ document.body.removeChild($('freeze'));
+ {rdelim}else if(browser_ie)
+ {ldelim}
+ var oDivfreeze = $('divId');
+ oDivfreeze.style.height = document.documentElement['clientHeight'] + 'px';
+
+ {rdelim}
+ $('divId').style.display = 'block';
{rdelim}
function freezeBackground()
{ldelim}
var oFreezeLayer = document.createElement("DIV");
oFreezeLayer.id = "freeze";
- oFreezeLayer.className = "veil";
+ oFreezeLayer.className = "small veil";
if (browser_ie) oFreezeLayer.style.height = (document.body.offsetHeight + (document.body.scrollHeight - document.body.offsetHeight)) + "px";
else if (browser_nn4 || browser_nn6) oFreezeLayer.style.height = document.body.offsetHeight + "px";
@@ -306,6 +316,7 @@
oFreezeLayer.style.width = "100%";
document.body.appendChild(oFreezeLayer);
document.getElementById('confId').style.display = 'block';
+ hideSelect();
{rdelim}
</script>
Modified: vtigercrm/branches/5.0.3/include/js/general.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/general.js (original)
+++ vtigercrm/branches/5.0.3/include/js/general.js Wed Apr 4 09:19:16 2007
@@ -24,8 +24,25 @@
var browser_nn6=true
-
-
+var gBrowserAgent = navigator.userAgent.toLowerCase();
+
+function hideSelect()
+{
+ var oselect_array = document.getElementsByTagName('SELECT');
+ for(var i=0;i<oselect_array.length;i++)
+ {
+ oselect_array[i].style.display = 'none';
+ }
+}
+
+function showSelect()
+{
+ var oselect_array = document.getElementsByTagName('SELECT');
+ for(var i=0;i<oselect_array.length;i++)
+ {
+ oselect_array[i].style.display = 'block';
+ }
+}
function getObj(n,d) {
var p,i,x;
More information about the vtigercrm-commits
mailing list