Friday, November 08, 2013

PhProjekt broken left side menu

If you have a broken/empty menu with the projects tree on the left side and you're using Firefox>24 or Chrome>29, like this:

http://utyp.net/thumbs/p/phprojekt-bug.png

 that's because Dojo 1.6 has a bug that is fixed on this release here:

http://downloads.dojotoolkit.org/release-1.6.2/

Just copy the files over in phprojekt/htdocs/ and that will fix it.

But then you'll notice that it takes forever to load all the .js files, so you'll need to create a custom build, see here:

http://dojotoolkit.org/reference-guide/1.7/quickstart/custom-builds.html

I used this:

dependencies ={

  layers:  [
      {
      name: "mydojo.js",
      dependencies: [
          "dojo.fx",
          "dijit.dijit-all",
          "dijit.Button",
          "dojox.wire.Wire",
          "dojox.wire.XmlWire",
        "dojo.dnd.Avatar",
        "dojo.dnd.common",
        "dojo.dnd.Container",
        "dojo.dnd.Manager",
        "dojo.dnd.move",
        "dojo.dnd.Mover",
        "dojo.dnd.Moveable",
        "dojo.dnd.Selector",
        "dojo.dnd.Source",
        "dojox/data/QueryReadStore",
        "dojox/form/Rating",
        "dojox/form/CheckedMultiSelect",
        "dojox/grid/_EditManager",
        "dojox/grid/util",
        "dojox/grid/_Events",
        "dojox/grid/_FocusManager",
        "dojox/grid/_Grid",
        "dijit/dijit",
        "dojox/html/metrics",
        "dojox/grid/_Scroller",
        "dojox/grid/_Layout",
        "dojox/grid/cells",
        "dojox/grid/cells/_base",
        "dojox/grid/_RowSelector",
        "dojox/grid/_View",
        "dojox/grid/_Builder",
        "dojox/grid/_ViewManager",
        "dojox/grid/_RowManager",
        "dojox/grid/Selection",
        "dojox/grid/cells/dijit",
        "dojox/grid/DataSelection",
        "dojox/grid/DataGrid",
        "dojox/grid/nls/DataGrid_en",
        "dojox/string/Builder",
        "dojox/string/sprintf",
        "dojox/string/tokenize",
        "dojox/dtl",
        "dojox/dtl/_Templated",
        "dojox/dtl/filter/htmlstrings",
        "dojox/dtl/filter/strings",
        "dojox/fx/_base",
        "dojox/fx/_core",
        "dojox/fx/scroll",
        "dojox/form/RangeSlider",
        "dijit/form/VerticalSlider",
        "dojox/fx",
        "dojox/layout/ExpandoPane",
        "dojox/layout/ScrollPane",
        "dojox/widget/Toaster",
        "dojox/layout/ResizeHandle"
      ]
      }
  ],

  prefixes: [
      [ "dijit", "../dijit" ],
      [ "dojox", "../dojox" ]
  ]

};

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?