svn commit: r728119 - /ofbiz/trunk/framework/images/webapp/images/jsgantt.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r728119 - /ofbiz/trunk/framework/images/webapp/images/jsgantt.js

jleroux@apache.org
Author: jleroux
Date: Fri Dec 19 11:24:25 2008
New Revision: 728119

URL: http://svn.apache.org/viewvc?rev=728119&view=rev
Log:
From an Erwan suggestion "details on a project task" (https://issues.apache.org/jira/browse/OFBIZ-2087) - OFBIZ-2087

Modified:
    ofbiz/trunk/framework/images/webapp/images/jsgantt.js

Modified: ofbiz/trunk/framework/images/webapp/images/jsgantt.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jsgantt.js?rev=728119&r1=728118&r2=728119&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/jsgantt.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/jsgantt.js Fri Dec 19 11:24:25 2008
@@ -54,6 +54,8 @@
    // pOpen: UNUSED - in future can be initially set to close folder when chart is first drawn
 
 
+   // ******* 1024,768 replaced by 1024,768 by JLR *******
+
 
 var JSGantt; if (!JSGantt) JSGantt = {};
 
@@ -523,6 +525,10 @@
 
       var vNumUnits  = 0;
 
+      var pWidth  = 1024;    // added by JLR
+
+      var pHeight  = 768;    // added by JLR
+
 
 
       var gr = new Graphics('rightside');
@@ -964,7 +970,7 @@
 
               vLeftTable +=
 
-                '<span onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",300,200); style="cursor:pointer"> ' + vTaskList[i].getName() + '</span></NOBR></TD>' ;
+                '<span onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",1024,768); style="cursor:pointer"> ' + vTaskList[i].getName() + '</span></NOBR></TD>' ;
 
               if(vShowRes ==1) vLeftTable += '  <TD class=gname style="WIDTH: 60px; HEIGHT: 20px; TEXT-ALIGN: center; BORDER-TOP: #efefef 1px solid; FONT-SIZE: 12px; BORDER-LEFT: #efefef 1px solid;" align=center><NOBR>' + vTaskList[i].getResource() + '</NOBR></TD>' ;
 
@@ -1307,7 +1313,7 @@
 
                    '<div id=bardiv_' + vID + ' style="position:absolute; top:0px; left:' + Math.ceil((vTaskLeft * (vDayWidth) + 1)) + 'px; height: 16px; width:12px; overflow:hidden;">' +
 
-                   '<div id=taskbar_' + vID + ' title="' + vTaskList[i].getName() + ': ' + vDateRowStr + '" style="height: 16px; width:12px; overflow:hidden; cursor: pointer;" onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",300,200);>';
+                   '<div id=taskbar_' + vID + ' title="' + vTaskList[i].getName() + ': ' + vDateRowStr + '" style="height: 16px; width:12px; overflow:hidden; cursor: pointer;" onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",1024,768);>';
 
 
 
@@ -1362,7 +1368,7 @@
 
                       'margin-left:1px; margin-right:1px; filter: alpha(opacity=80); opacity:0.8; width:' + vTaskList[i].getCompStr() + '; ' +
 
-                      'cursor: pointer;" onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",300,200);></div></div>' +
+                      'cursor: pointer;" onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",1024,768);></div></div>' +
 
                    '<div style="Z-INDEX: -4; float:left; background-color:#000000; height:4px; overflow: hidden; width:1px;"></div>' +
 
@@ -1394,7 +1400,7 @@
 
                    '<div id=taskbar_' + vID + ' title="' + vTaskList[i].getName() + ': ' + vDateRowStr + '" class=gtask style="background-color:#' + vTaskList[i].getColor() +'; height: 13px; width:' + Math.ceil((vTaskRight) * (vDayWidth) - 1) + 'px; cursor: pointer;" ' +
 
-                     'onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",300,200);>' +
+                     'onclick=JSGantt.taskLink("' + vTaskList[i].getLink() + '",1024,768);>' +
 
                    '<div class=gcomplete style="Z-INDEX: -4; float:left; background-color:black; height:5px; overflow: auto; margin-top:4px; filter: alpha(opacity=40); opacity:0.4; width:' + vTaskList[i].getCompStr() + '; overflow:hidden"></div></div></div>' ;