-
25 Aug 2011 8:17 PM #21
Thanks! That just put me much closer to having this completed!
There is only one issue that I am running into now. It works when using a module that is already listed on the desktop or left side menu such as Pages Window because it is listed here:
For example, if I addedCode:getModules: function () { return [new MyDesktop.DashboardWindow(), new MyDesktop.MenusWindow(), new MyDesktop.PagesWindow(), new MyDesktop.PostsWindow(), new MyDesktop.ModulesWindow(), new MyDesktop.FormsWindow(), new MyDesktop.LayoutWindow(), new MyDesktop.UsersWindow(), new MyDesktop.MarketWindow(), new MyDesktop.ExtrasWindow(), new MyDesktop.ForumWindow()] },
to the above list then the System Configuration window would load from the right menu but is also going to appear on the left side.Code:new MyDesktop.SystemConWindow
In my demo ( http://www.zazavi.com/desktop/desktop.html ) you will see that all the buttons on the right side are loading Pages and Posts because they are listed in the above list. However, when I change System Configuration to load its module (already did in demo so you can see it) then it won't load it since it is not in the first list.
So, to make it more basic like before: where can I list the module so that the right menu can get it but so that it doesn't appear in the left menu?
Once again, thanks for your time!
-
25 Aug 2011 8:24 PM #22
I believe you need to add it to the same module list as the others but delete its launcher.
-
25 Aug 2011 8:42 PM #23
This is how I added it:
What exactly do I need to change for it to not show on the left side but still work on the right side?Code:getModules: function () { return [new MyDesktop.SystemConWindow(), new MyDesktop.DashboardWindow(), new MyDesktop.MenusWindow(), new MyDesktop.PagesWindow(), new MyDesktop.PostsWindow(), new MyDesktop.ModulesWindow(), new MyDesktop.FormsWindow(), new MyDesktop.LayoutWindow(), new MyDesktop.UsersWindow(), new MyDesktop.MarketWindow(), new MyDesktop.ExtrasWindow(), new MyDesktop.ForumWindow()] },
Also, I have the demo updated so that it is currently working on the right side but also showing now on the left so you see what I mean.
-
25 Aug 2011 8:48 PM #24
Remove the code that adds the launcher:
Code:this.launcher={text:"System Configuration" ...
-
25 Aug 2011 9:00 PM #25
When I remove the launcher
it just loads a blank page on my end.Code:{this.launcher={text:"System Configuration",iconCls:"tabs",handler:this.createWindow,scope:this}}
-
25 Aug 2011 9:08 PM #26
Delete this bit too:
You wouldn't be having these problems if you weren't still trying to write minified code. A decent IDE would also help.Code:init:function(),
-
25 Aug 2011 9:36 PM #27
That worked perfect! Thank you so much for your help!


Reply With Quote