On 23 Agu 2011, at 02:57, Aris Feryanto aris_feryanto@yahoo.com wrote:
On 23 Agu 2011, at 02:29, Piotr Przybylski piotr.prz@gmail.com wrote:
2011/8/22 Tyron Madlener tyronx@gmail.com:
On Mon, Aug 22, 2011 at 8:23 PM, Madhura Jayaratne madhura.cj@gmail.com wrote:
Hi Aris, The icon to open the date-time picker in table-insert and table-search pages has gone missing. It seems like condition if ($.datetimepicker != undefined) in function.js (line 688) is causing this. Was this condition added to prevent some JS errors or can we remove it? Also, the date-time picker does not seem to display the month anywhere or change the year at the top when the arrows on either side of it are clicked.
Piotr added this line with commit 84cc7837f5da69c588f7503da0acc9512ff29619, though I don't quite know why.
I was seeing a JS error on server Status page, because the script was trying to use $.datepicker which is there loaded on demand: .datefield and .datetimefield elements exist there but they should be initialized only when Monitor tab is used (timepicker's .js file is then dynamically loaded).
I think the checking should be done with "$.fn.datetimepicker" instead of "$.datetimepicker".
And about the month and year navigator, I found that it is firstly not working after addition of PMA_formatJsVal() function by Michal. But, I'm still not sure what's wrong with this.
After investigating a bit, I found that line 99 in js_escape.lib.php should be:
97: $result .= '['; 98: foreach ($value as $id => $val) { 99: $result .= PMA_formatJsVal($val) . ","; 100: }
the PMA_formatJsVal should take $val instead of $value as the parameter.
-- Aris Feryanto
Hi
Dne Mon, 22 Aug 2011 12:21:41 -0700 (PDT) Aris Feryanto aris_feryanto@yahoo.com napsal(a):
After investigating a bit, I found that line 99 in js_escape.lib.php should be:
97: $result .= '['; 98: foreach ($value as $id => $val) { 99: $result .= PMA_formatJsVal($val) . ","; 100: }
the PMA_formatJsVal should take $val instead of $value as the parameter.
You're right, fixed.
Thanks