The problem

Firefox 8, released in November 2011, has decided to make contextMenu a reserved word when creating HTML5-style context-sensitive menus.

Unfortunately, TIM Enterprise already used this identifier before Firefox was changed, such that the Directory's pop-up menu no longer appears as expected.

Therefore, we have changed the identifier in the product's content to use dirContextMenu instead of contextMenu. If you are using a version of TIM Enterprise earlier than 3.0.0.77 you will need to make some changes to your web content, located in the {Program Files}\Tri-Line\TIM Enterprise\ssldata\ folder.

 

The solution

Upgrade to at least version 3.0.0.77 where this change has already been made to the default content.

If you are unable to upgrade to TIM Enterprise 3.0.0.77 (for example, you have no maintenance contract) then it is recommended that you either temporarily use an alternative browser or change the following code within the directory.js files.

The directory.js files are located by default in the following locations:

The following changes need to be made to these files:

Search for:
    function contextMenu(strID, evt, fromFind) {
 
Replace with:
    function dirContextMenu(strID, evt, fromFind) {
Search for:
    strOut.append("' onclick=\"contextMenu('");
 
Replace with:
    strOut.append("' onclick=\"dirContextMenu('");
Search for:
    strOut.append("', event)\" oncontextmenu=\"contextMenu('");
 
Replace with:
    strOut.append("', event)\" oncontextmenu=\"dirContextMenu('");
Search for:
    strOut.append("' onclick=\"highLight = this.id;contextMenu('");
 
Replace with:
    strOut.append("' onclick=\"highLight = this.id;dirContextMenu('");
Search for:
    strOut.append("', event, true);\" oncontextmenu=\"highLight = this.id;contextMenu('");
 
Replace with:
    strOut.append("', event, true);\" oncontextmenu=\"highLight = this.id;dirContextMenu('");

More information

Firefox 8 was publicly released on 8th November 2011. A new feature was introduced for integration with the browser's HTML5 context menu.

The related release note from Mozilla's documents is: Added support for HTML5 context menus.

Full release notes for Firefox 8 are available here.

 

 

 

 

 

 

 

<h2>The problem</h2>

<p>Firefox 8, released in November 2011, has decided to make <span class="keyword">contextMenu</span> a reserved word when creating HTML5-style context-sensitive menus.</p>

<p>Unfortunately, TIM Enterprise already used this identifier before 
Firefox was changed, such that the Directory's pop-up menu no longer 
appears as expected.</p>

<p>Therefore, we have changed the identifier in the product's content to
 use  <span class="keyword">dirContextMenu</span> instead of  <span class="keyword">contextMenu</span>. If you are using a version 
of TIM Enterprise earlier than 3.0.0.77 you will need to make some 
changes to your web content, located in the <span class="keyword">{Program Files}\Tri-Line\TIM Enterprise\ssldata\</span> folder.</p>

<h2>The solution</h2>

<p>Upgrade to at least version 3.0.0.77 where this change has already been made to the default content.</p>

<p>If you are unable to upgrade to TIM Enterprise 3.0.0.77 (for example,
 you have no maintenance contract) then it is recommended that you 
either temporarily use an alternative browser or change the following 
code within the  <span class="keyword">directory.js</span> files.</p>

<p>The <span class="keyword">directory.js</span> files are located by default in the following locations:</p>

<ul>
	<li><span class="keyword">C:\Program Files\Tri-Line\TIM Enterprise\ssldata\_admin\furniture\js\directory.js</span></li>
	<li><span class="keyword">C:\Program Files\Tri-Line\TIM Enterprise\ssldata\_root\furniture\js\directory.js</span></li>
</ul>

<p>The following changes need to be made to these files:</p>
Search for:
    function contextMenu(strID, evt, fromFind) {

Replace with:
    function dirContextMenu(strID, evt, fromFind) {
Search for:
    strOut.append("' onclick=\"contextMenu('");

Replace with:
    strOut.append("' onclick=\"dirContextMenu('");
Search for:
    strOut.append("', event)\" oncontextmenu=\"contextMenu('");

Replace with:
    strOut.append("', event)\" oncontextmenu=\"dirContextMenu('");
Search for:
    strOut.append("' onclick=\"highLight = this.id;contextMenu('");

Replace with:
    strOut.append("' onclick=\"highLight = this.id;dirContextMenu('");
Search for:
    strOut.append("', event, true);\" oncontextmenu=\"highLight = this.id;contextMenu('");

Replace with:
    strOut.append("', event, true);\" oncontextmenu=\"highLight = this.id;dirContextMenu('");
<h2>More information</h2>

<p>Firefox 8 was publicly released on 8th November 2011.  A new feature 
was introduced for integration with the browser's HTML5 context menu.</p>

<p>The related release note from Mozilla's documents is: Added support for HTML5 context menus.</p>

<p>Full release notes for Firefox 8 are available <a href="http://www.mozilla.org/en-US/firefox/8.0/releasenotes/">here</a>.</p>