Revision 29faf148
Von Thomas Heck vor mehr als 12 Jahren hinzugefügt
js/dhtmlsuite/menu-for-applications.js | ||
---|---|---|
1187 | 1187 |
}else{ |
1188 | 1188 |
/* Add events */ |
1189 | 1189 |
var tmpVar = this.objectIndex/1; |
1190 |
this.divElement.onclick = function(e) { DHTMLSuite.variableStorage.arrayOfDhtmlSuiteObjects[tmpVar].__navigate(e); } |
|
1190 |
//this.divElement.onclick = function(e) { DHTMLSuite.variableStorage.arrayOfDhtmlSuiteObjects[tmpVar].__navigate(e); }
|
|
1191 | 1191 |
this.divElement.onmousedown = this.__clickMenuItem; // on mouse down effect |
1192 | 1192 |
this.divElement.onmouseup = this.__rolloverMenuItem; // on mouse up effect |
1193 | 1193 |
this.divElement.onmouseover = this.__rolloverMenuItem; // mouse over effect |
... | ... | |
1264 | 1264 |
parentEl.style.backgroundPosition = 'left center'; |
1265 | 1265 |
} |
1266 | 1266 |
if(this.modelItemRef.itemText){ |
1267 |
var div = document.createElement('DIV'); |
|
1267 |
var div; |
|
1268 |
if( this.modelItemRef.url ) |
|
1269 |
{ |
|
1270 |
div = document.createElement('a'); |
|
1271 |
div.href = this.modelItemRef.url; |
|
1272 |
div.target = this.modelItemRef.frameTarget; |
|
1273 |
div.style.display = 'block'; |
|
1274 |
} |
|
1275 |
else |
|
1276 |
div = document.createElement('div'); |
|
1277 |
|
|
1268 | 1278 |
div.className = 'DHTMLSuite_textContent'; |
1269 | 1279 |
div.innerHTML = this.modelItemRef.itemText; |
1270 | 1280 |
div.className = this.cssPrefix + 'menuItem_textContent'; |
Auch abrufbar als: Unified diff
JS-Menu: Bei Mittel-Klick Link im neuen Fenster öffnen(Ticket #1921)