*** tpb has joined #melangedev | 00:00 | |
*** tpb has joined #melangedev | 00:08 | |
*** lh has joined #melangedev | 00:16 | |
*** tansell-laptop has quit IRC | 00:23 | |
*** tansell-laptop has joined #melangedev | 00:31 | |
*** madrazr has joined #melangedev | 02:25 | |
*** ChanServ sets mode: +v madrazr | 02:25 | |
*** Lennie has joined #melangedev | 03:18 | |
*** ChanServ sets mode: +o Lennie | 03:18 | |
*** tansell-laptop has quit IRC | 03:30 | |
*** tansell-laptop has joined #melangedev | 03:42 | |
*** tansell-laptop has quit IRC | 04:15 | |
*** tansell-laptop has joined #melangedev | 04:16 | |
*** Lennie has quit IRC | 04:49 | |
*** MatthewWilkes has joined #melangedev | 05:22 | |
*** dhans has joined #melangedev | 05:59 | |
*** ChanServ sets mode: +v dhans | 05:59 | |
*** Merio has joined #melangedev | 06:02 | |
*** ChanServ sets mode: +v Merio | 06:02 | |
dhans | Merio: ping | 06:19 |
---|---|---|
Merio | dhans:pong | 06:22 |
dhans | Merio: hey :) | 06:22 |
Merio | dhans: how do you do? :) Finally at home :) | 06:22 |
dhans | Merio: I have two questions regarding jquery | 06:22 |
dhans | Merio: thank you, I am cool :) | 06:22 |
Merio | dhans: yes | 06:22 |
Merio | dhans: yesterday was busy one... with the travel and all... and today too will be, need to sleep, haven't sleep during the night while waiting at the Stansted airport :) | 06:23 |
dhans | Merio: so you are already in Italy, arent't you? | 06:24 |
Merio | dhans: yes, entered in my house few minutes before connecting again :) | 06:24 |
dhans | Merio: cool, we are in the same time zone :) | 06:25 |
Merio | dhans: yes, until 21 it will be so ^__^ | 06:25 |
dhans | Merio: anyway, it'd be great if you could open melange.graph.chart for a moment | 06:25 |
dhans | Merio: I am aware that you're tired and so, but I hope it'll take like 5 minutes | 06:26 |
Merio | dhans: no problems, if it can save you time I'll be glad | 06:27 |
Merio | dhans: I've connected as soon as I arrived for these purposes :) | 06:28 |
dhans | Merio: thanks :) | 06:28 |
Merio | ok file opened | 06:28 |
Merio | dhans: ^^ | 06:29 |
dhans | ok, so first, the more important thing. on line 227 there should be something like if (widget_open['visible'] == 'false') { ... | 06:29 |
Merio | ?? you mean if (Boolean(widget_options["movable"]) === true) { ? | 06:30 |
dhans | nope | 06:30 |
Merio | (line 141) | 06:30 |
dhans | have you pulled the latest version? :) | 06:31 |
Merio | if there's something new since yesterday morning not :) | 06:31 |
Merio | GOing to | 06:31 |
Merio | ok pulled | 06:33 |
dhans | ok, so do you see this condition? | 06:33 |
Merio | yes | 06:33 |
dhans | if it is true, it should alert "HIDDEN" and I would also like to hide the whole widget-content section, but the former is not working | 06:34 |
dhans | is there anything wrong with syntax or something? | 06:34 |
Merio | Actually problem is to use a string instead of a boolean :) Have you tried using "===" instead of "==" | 06:36 |
Merio | ? | 06:36 |
dhans | is this a problem? because alert is shown... | 06:37 |
Merio | using "==="? | 06:38 |
dhans | using == | 06:38 |
Merio | ah ok seemed strange to me that it didn't work | 06:38 |
Merio | :) | 06:38 |
Merio | So problem is the hiding of the widget-content | 06:38 |
dhans | Merio: exactly | 06:39 |
Merio | You should use widget_content.hide() | 06:39 |
Merio | You actually wrapped a jquery object inside a jquery object inside another jquery object ;) | 06:39 |
dhans | as far as I remeber I tried this | 06:39 |
Merio | Try again, it should work | 06:41 |
dhans | Merio: hmm just tries at it does not ;-( | 06:42 |
Merio | dhans: problem probably is that widget is not already appended in the DOM | 06:43 |
dhans | Merio: but I also started with this, because it seems to be good. maybe it is a wrong place in code for something like this? | 06:43 |
Merio | So you have to do that after jQuery("#column"+column_for_widget).append(widget_to_create); [line 262] | 06:43 |
dhans | Merio: you're the best :) | 06:45 |
Merio | dhans: it works? :) | 06:45 |
dhans | yeah | 06:45 |
Merio | 8-) | 06:46 |
Merio | party then :) | 06:46 |
dhans | so now I see that all effects must be applied after an object is appended to DOM :) | 06:46 |
dhans | Merio: ok, and the second thing is at line 158 | 06:46 |
Merio | dhans: actually it depends, because you can append events to elements that are not appended to DOM | 06:46 |
dhans | hmm but for hide it didn't work :) | 06:47 |
Merio | because you're doing an action directly, it's not bound to an event that will be fired afterwards (when the widget is actually appended to the DOM) | 06:48 |
Merio | If you do action inside an event handler than it will work, because that event handler will be fired for example clicking on the element. But to be clicked, it means that the element is already there :) | 06:49 |
Merio | line 158 => /* TODO function deleteFromServer should be called here */? | 06:49 |
dhans | Merio: yes | 06:49 |
dhans | Merio: so the function deleteFromServer is defined above | 06:50 |
dhans | (line 119) | 06:50 |
dhans | but this time I don't know how to actually call it | 06:50 |
Merio | (actually we should pay attention to this, because when you close a widget you want to hide it, not actually delete the real chart entity from the datastore) | 06:50 |
dhans | hmm ? I added a close button yesterday, and it actually removes a chart from database. is there something wrong? | 06:52 |
Merio | but if you say that you don't know how to call it, it already removes something? Can't understand :) | 06:53 |
Merio | Well problem is that the chart.py, after you give some rights, can be used potentially in everyone's dashboard | 06:54 |
Merio | And you don't want that if someone closes it the chart is deleted from everyone's dashboard | 06:54 |
Merio | To do that we need probably to do something more with the models, but I preferred to do everything step by step | 06:54 |
dhans | I don't know how to call function this.deleteFromServer from line 158 | 06:54 |
Merio | Actually that is something that should be bound in dashboard.js, so you should call it from there | 06:55 |
dhans | but I want from here :P | 06:55 |
Merio | Otherwise you come up with mixed code of things that are doing something different and can't be reused | 06:55 |
Merio | You can try to call with this.deleteFromServer(). | 06:56 |
dhans | Merio: ok, so screw that function :) | 06:56 |
Merio | Yeah no problems :) | 06:56 |
dhans | Merio: but about this removing from database: afaik charts are defined per user, so we remove just a chart for one user, ok? | 06:58 |
Merio | However, if you can do it, I would like to have the statistic view to reply with the statistic scope path so we can use "/statistic/get_json_response/google/gsoc2009" as well as "/statistic/get_json_response/google/gsoc" in the live instance and we don't have to change it everytime :) | 06:58 |
Merio | dhans: as said, the chart.py has a user because a user is the owner of the chart, but it could be present in many dashboards of many users. The relationship should be expanded to a many 2 many one | 07:00 |
Merio | dhans: need to go to lunch | 07:01 |
Merio | dhans: however I suggest for this evening conference call to ask really about priorities because it seems I have an idea of what to do and when to do, Pawel has another idea, and perhaps you have another and Sverre another one again... so we have to go straight to a common one otherwise we'll screw up everything :) | 07:02 |
Merio | dhans: so, go to lunch... bbl :) | 07:03 |
dhans | Merio: ok so ping me | 07:03 |
Merio | dhans: yep, probably from 2 to 7/8 I won't be online, because I need to go to Rome center to pick up my girlfriend. But as soon as I finished lunch I'll be here again if you have more questions | 07:04 |
Merio | dhans: ttyl | 07:05 |
*** dhans has quit IRC | 07:20 | |
*** dhans has joined #melangedev | 07:23 | |
*** ChanServ sets mode: +v dhans | 07:23 | |
Merio | dhans:ping | 07:51 |
dhans | Merio:pong | 07:51 |
Merio | dhans: any question? because I'm leaving till conference call :) | 07:51 |
dhans | Merio: no thank you :-) | 07:52 |
Merio | dhans: ok :) See you during call then :) | 07:52 |
dhans | Merio: see ya | 07:52 |
*** Merio has quit IRC | 07:52 | |
*** madrazr has left #melangedev | 08:11 | |
*** MatthewWilkes has left #melangedev | 10:15 | |
*** Lennie has joined #melangedev | 10:18 | |
*** ChanServ sets mode: +o Lennie | 10:18 | |
*** dhans_ has joined #melangedev | 11:48 | |
*** dhans_ has left #melangedev | 11:52 | |
*** dhans has quit IRC | 11:57 | |
*** madrazr has joined #melangedev | 12:30 | |
*** ChanServ sets mode: +v madrazr | 12:30 | |
*** Lennie is now known as Lennie|Food | 13:06 | |
*** Merio has joined #melangedev | 13:34 | |
*** ChanServ sets mode: +v Merio | 13:34 | |
*** Lennie|Food is now known as Lennie | 13:58 | |
*** madrazr has left #melangedev | 13:58 | |
*** madrazr has joined #melangedev | 14:46 | |
*** ChanServ sets mode: +v madrazr | 14:46 | |
*** Merio has quit IRC | 15:47 | |
*** madrazr1 has joined #melangedev | 16:34 | |
*** madrazr has quit IRC | 16:34 | |
*** madrazr1 has left #melangedev | 16:34 | |
*** madrazr has joined #melangedev | 16:34 | |
*** ChanServ sets mode: +v madrazr | 16:34 | |
*** madrazr has left #melangedev | 18:56 | |
*** Lennie has quit IRC | 19:04 | |
*** Lennie has joined #melangedev | 19:13 | |
*** ChanServ sets mode: +o Lennie | 19:13 | |
*** Lennie has quit IRC | 19:14 | |
*** tansell_laptop has joined #melangedev | 19:34 | |
*** tansell_laptop has quit IRC | 19:35 | |
*** tansell_laptop has joined #melangedev | 19:35 | |
*** tansell-laptop has quit IRC | 19:45 | |
*** tansell--laptop has joined #melangedev | 20:31 | |
*** tansell_laptop has quit IRC | 20:33 | |
*** tansell_laptop has joined #melangedev | 20:49 | |
*** tansell_laptop has quit IRC | 20:55 | |
*** tansell_laptop has joined #melangedev | 20:55 | |
*** tansell--laptop has quit IRC | 20:58 | |
*** tansell_laptop has quit IRC | 21:21 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!