Tuesday, 2009-07-07

*** tpb has joined #melangedev00:00
*** tpb has joined #melangedev00:08
*** lh has joined #melangedev00:16
*** tansell-laptop has quit IRC00:23
*** tansell-laptop has joined #melangedev00:31
*** madrazr has joined #melangedev02:25
*** ChanServ sets mode: +v madrazr02:25
*** Lennie has joined #melangedev03:18
*** ChanServ sets mode: +o Lennie03:18
*** tansell-laptop has quit IRC03:30
*** tansell-laptop has joined #melangedev03:42
*** tansell-laptop has quit IRC04:15
*** tansell-laptop has joined #melangedev04:16
*** Lennie has quit IRC04:49
*** MatthewWilkes has joined #melangedev05:22
*** dhans has joined #melangedev05:59
*** ChanServ sets mode: +v dhans05:59
*** Merio has joined #melangedev06:02
*** ChanServ sets mode: +v Merio06:02
dhansMerio: ping06:19
Meriodhans:pong06:22
dhansMerio: hey :)06:22
Meriodhans: how do you do? :) Finally at home :)06:22
dhansMerio: I have two questions regarding jquery06:22
dhansMerio: thank you, I am cool :)06:22
Meriodhans: yes06:22
Meriodhans: 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
dhansMerio: so you are already in Italy, arent't you?06:24
Meriodhans: yes, entered in my house few minutes before connecting again :)06:24
dhansMerio: cool, we are in the same time zone :)06:25
Meriodhans: yes, until 21 it will be so ^__^06:25
dhansMerio: anyway, it'd be great if you could open melange.graph.chart for a moment06:25
dhansMerio: I am aware that you're tired and so, but I hope it'll take like 5 minutes06:26
Meriodhans: no problems, if it can save you time I'll be glad06:27
Meriodhans: I've connected as soon as I arrived for these purposes :)06:28
dhansMerio: thanks :)06:28
Meriook file opened06:28
Meriodhans: ^^06:29
dhansok, 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
dhansnope06:30
Merio(line 141)06:30
dhanshave you pulled the latest version? :)06:31
Merioif there's something new since yesterday morning not :)06:31
MerioGOing to06:31
Meriook pulled06:33
dhansok, so do you see this condition?06:33
Merioyes06:33
dhansif it is true, it should alert "HIDDEN" and I would also like to hide the whole widget-content section, but the former is not working06:34
dhansis there anything wrong with syntax or something?06:34
MerioActually problem is to use a string instead of a boolean :) Have you tried using "===" instead of "=="06:36
Merio?06:36
dhansis this a problem? because alert is shown...06:37
Meriousing "==="?06:38
dhansusing ==06:38
Merioah ok seemed strange to me that it didn't work06:38
Merio:)06:38
MerioSo problem is the hiding of the widget-content06:38
dhansMerio: exactly06:39
MerioYou should use widget_content.hide()06:39
MerioYou actually wrapped a jquery object inside a jquery object inside another jquery object ;)06:39
dhansas far as I remeber I tried this06:39
MerioTry again, it should work06:41
dhansMerio: hmm just tries at it does not ;-(06:42
Meriodhans: problem probably is that widget is not already appended in the DOM06:43
dhansMerio: 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
MerioSo you have to do that after jQuery("#column"+column_for_widget).append(widget_to_create); [line 262]06:43
dhansMerio: you're the best :)06:45
Meriodhans: it works? :)06:45
dhansyeah06:45
Merio8-)06:46
Merioparty then :)06:46
dhansso now I see that all effects must be applied after an object is appended to DOM :)06:46
dhansMerio: ok, and the second thing is at line 15806:46
Meriodhans: actually it depends, because you can append events to elements that are not appended to DOM06:46
dhanshmm but for hide it didn't work :)06:47
Meriobecause 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
MerioIf 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
Merioline 158 => /* TODO function deleteFromServer should be called here */?06:49
dhansMerio: yes06:49
dhansMerio: so the function deleteFromServer is defined above06:50
dhans(line 119)06:50
dhansbut this time I don't know how to actually call it06: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
dhanshmm ? I added a close button yesterday, and it actually removes a chart from database. is there something wrong?06:52
Meriobut if you say that you don't know how to call it, it already removes something? Can't understand :)06:53
MerioWell problem is that the chart.py, after you give some rights, can be used potentially in everyone's dashboard06:54
MerioAnd you don't want that if someone closes it the chart is deleted from everyone's dashboard06:54
MerioTo do that we need probably to do something more with the models, but I preferred to do everything step by step06:54
dhansI don't know how to call function this.deleteFromServer from line 15806:54
MerioActually that is something that should be bound in dashboard.js, so you should call it from there06:55
dhansbut I want from here :P06:55
MerioOtherwise you come up with mixed code of things that are doing something different and can't be reused06:55
MerioYou can try to call with this.deleteFromServer().06:56
dhansMerio: ok, so screw that function :)06:56
MerioYeah no problems :)06:56
dhansMerio: but about this removing from database: afaik charts are defined per user, so we remove just a chart for one user, ok?06:58
MerioHowever, 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
Meriodhans: 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 one07:00
Meriodhans: need to go to lunch07:01
Meriodhans: 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
Meriodhans: so, go to lunch... bbl :)07:03
dhansMerio: ok so ping me07:03
Meriodhans: 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 questions07:04
Meriodhans: ttyl07:05
*** dhans has quit IRC07:20
*** dhans has joined #melangedev07:23
*** ChanServ sets mode: +v dhans07:23
Meriodhans:ping07:51
dhansMerio:pong07:51
Meriodhans: any question? because I'm leaving till conference call :)07:51
dhansMerio: no thank you :-)07:52
Meriodhans: ok :) See you during call then :)07:52
dhansMerio: see ya07:52
*** Merio has quit IRC07:52
*** madrazr has left #melangedev08:11
*** MatthewWilkes has left #melangedev10:15
*** Lennie has joined #melangedev10:18
*** ChanServ sets mode: +o Lennie10:18
*** dhans_ has joined #melangedev11:48
*** dhans_ has left #melangedev11:52
*** dhans has quit IRC11:57
*** madrazr has joined #melangedev12:30
*** ChanServ sets mode: +v madrazr12:30
*** Lennie is now known as Lennie|Food13:06
*** Merio has joined #melangedev13:34
*** ChanServ sets mode: +v Merio13:34
*** Lennie|Food is now known as Lennie13:58
*** madrazr has left #melangedev13:58
*** madrazr has joined #melangedev14:46
*** ChanServ sets mode: +v madrazr14:46
*** Merio has quit IRC15:47
*** madrazr1 has joined #melangedev16:34
*** madrazr has quit IRC16:34
*** madrazr1 has left #melangedev16:34
*** madrazr has joined #melangedev16:34
*** ChanServ sets mode: +v madrazr16:34
*** madrazr has left #melangedev18:56
*** Lennie has quit IRC19:04
*** Lennie has joined #melangedev19:13
*** ChanServ sets mode: +o Lennie19:13
*** Lennie has quit IRC19:14
*** tansell_laptop has joined #melangedev19:34
*** tansell_laptop has quit IRC19:35
*** tansell_laptop has joined #melangedev19:35
*** tansell-laptop has quit IRC19:45
*** tansell--laptop has joined #melangedev20:31
*** tansell_laptop has quit IRC20:33
*** tansell_laptop has joined #melangedev20:49
*** tansell_laptop has quit IRC20:55
*** tansell_laptop has joined #melangedev20:55
*** tansell--laptop has quit IRC20:58
*** tansell_laptop has quit IRC21:21

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!