Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a888cd08

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID a888cd0873a108e928d63b8a6f02d46c2090f49c
  • Vorgänger 4e7776aa
  • Nachfolger f2d37e5a

Css vom Menü nicht nachträglich laden, sondern schon im Layout laden.

Idee ist prinziipell gut, gibt aber Probleme mit dem auflösen von user stylesheets bei ajax layouts

Unterschiede anzeigen:

js/dhtmlsuite/menu-for-applications.js
1138 1138
	var cssPrefix;							// Css prefix for the menu items.
1139 1139
	var modelItemRef;						// Reference to menuModelItem
1140 1140

  
1141
	this.layoutCSS = 'menu-item.css';
1141
//	this.layoutCSS = 'menu-item.css';
1142 1142
	this.cssPrefix = 'DHTMLSuite_';
1143 1143
	
1144 1144
	if(!standardObjectsCreated)DHTMLSuite.createStandardObjects();	
......
1160 1160
	*/
1161 1161
	createItem : function(menuModelItemObj)
1162 1162
	{
1163
		DHTMLSuite.commonObj.loadCSS(this.layoutCSS);	// Load css
1163
//		DHTMLSuite.commonObj.loadCSS(this.layoutCSS);	// Load css
1164 1164
		
1165 1165
		DHTMLSuite.variableStorage.arrayOfDhtmlSuiteObjects[this.objectIndex] = this;
1166 1166
			
......
1594 1594
	var globalObjectIndex;			// Global index of this object - used to refer to the object of this class outside
1595 1595
	this.cssPrefix = 'DHTMLSuite_';
1596 1596
	this.menuItemLayoutCss = false;	// false = use default for the menuItem class.
1597
	this.layoutCSS = 'menu-bar.css';
1597
//	this.layoutCSS = 'menu-bar.css';
1598 1598
	this.menuBarBackgroundImage = 'menu_strip_bg.jpg';
1599 1599
	this.menuItem_objects = new Array();
1600 1600
	DHTMLSuite.variableStorage.menuBar_highlightedItems = new Array();
......
1630 1630
	init : function()
1631 1631
	{
1632 1632
		
1633
		DHTMLSuite.commonObj.loadCSS(this.layoutCSS);	
1633
//		DHTMLSuite.commonObj.loadCSS(this.layoutCSS);	
1634 1634
		this.__createDivs();	// Create general divs
1635 1635
		this.__createMenuItems();	// Create menu items
1636 1636
		this.__setBasicEvents();	// Set basic events.
templates/webpages/menu/menunew.html
77 77
$(function(){
78 78
  DHTMLSuite.createStandardObjects();
79 79

  
80
  DHTMLSuite.configObj.setCssPath('[% myconfig.css_path %]/dhtmlsuite/');
81 80
  DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/');
82 81

  
83 82
  var menu_model = new DHTMLSuite.menuModel();

Auch abrufbar als: Unified diff