-
Notifications
You must be signed in to change notification settings - Fork 19
Issue 174 rev3 (team 4) #225
base: master
Are you sure you want to change the base?
Conversation
agiz
commented
Jun 7, 2012
- API for displaying stores around nodes from odpiralnicasi.com
- Provided short demonstration how to integrate api information into template.
Conflicts: piplmesh/frontend/templates/base.html
|
Please update from main repository. You have panels API available. Check it out. ;-) |
Conflicts: piplmesh/frontend/templates/home.html
Please support laziness and tell how to enable a panel. Can it be determined what panels should load first? |
Currently all panels under API also supports defining dependencies between panels. But as currently all panels are always displayed, this is not a problem. Also order of loading on the page is not important and should not be important if you do it correctly. So, first, you do everything through jquery.ready in every panel. Then, I suggest you define custom event which you will trigger when map is ready. And other panels can then in their jquery.ready subscribe to that event. Of course, if map is already ready when they subscribe to the event, they should be immediately run, not just waiting for the event which will never come anymore. So it should behave like jquery.ready does, only for maps. I am not really sure if jQuery supports something like this already, but it maybe does. Check it out. So, you should define your own JavaScript API in the map in the way that other panels can use the map, without being afraid of the loading order. |
By
do you mean create them under panels directory? Because I have done that. Can underscore in panel name be an issue? |
Can you show me the code? No, underscore should not be a problem. But name is automatically derived from the class name otherwise, and it is probably best to just leave it as it is? |
You have restarted runserver? Really restart, not just leave to its autoreload. |
Grrr. This is the stupidest github part. If you rename files it stops tracking them or what? I do not even have option to add them manually. |
Github? Or git? You should be renaming always with |
I have known this issue before, I was just never affected by it. Anyway, please check this pull request now, it seems to represent my structure correctly. |
And where is Python code which goes with the panel? There is where you register the panel into the pool. |
And please name it |
And |
Aaaa.So that is what is mean by registering into the pool. Nonetheless I have added that and panel still does not load. |
Or even name it |
Please check everything precisely. You do have |
Are panels connected by context header? I mean does Map panel name connect with map directory name? |
I did have |
I have documented JavaScript code style here: |
TODO. |
Please update from main repository. |
Conflicts: piplmesh/frontend/static/piplmesh/jquery/css/jquery-ui.css piplmesh/frontend/static/piplmesh/jquery/jquery-ui.js piplmesh/frontend/templates/base.html piplmesh/panels/onlineusers/templates/panel/onlineusers/panel.html
BUMP! Updated from main repository. |
Vuii, you are alive!!! :-) |
Hehe, yes hardly :). I wish I was relaxing all this time as it might be seen from lack of my activity here. Unfortunately that was not the case :(. |
Umm hi again. Have I overlooked something that needs to be done here? |
No time on my side. There are others which need to pass the class. BTW, please update from main repository, again. Sorry! |
(We got now also big map functionality. The idea is to provide layers there! And that people can move around!) |
Conflicts: piplmesh/panels/map/static/piplmesh/panel/map/panel.js piplmesh/panels/map/templates/panel/map/panel.html
No problem Mitar. I understand how priorities work. Also updated. I have not checked big map yet, I am on a rough schedule myself. |
self.today = self.is_open ? gettext("open") : gettext("closed"); | ||
self.location = new google.maps.LatLng(self.lat, self.lng); | ||
self.image = 'https://www.google.com/intl/en_us/mapfiles/ms/micons/yellow-dot.png'; | ||
if ('is_open' in self && self.is_open == true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.is_open == true
? Why not just self.is_open
?
…d numbers with string literals.
Fixed some minor mistakes, somewhat clueless how to combat others. |
}); | ||
} | ||
|
||
map_loaded.done(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is map_loaded
defined?
So about which things you are clueless? I can try to help. |