2014-02-12 Sergio Martin <sergio.martin@artica.es>

* mobile/operation/events.php: Fix order of the event 
	list on mobile console.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9432 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2014-02-12 12:07:58 +00:00
parent bb8d3ec15a
commit 205f648c4a
2 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2014-02-12 Sergio Martin <sergio.martin@artica.es>
* mobile/operation/events.php: Fix order of the event
list on mobile console.
2014-02-11 Sergio Martin <sergio.martin@artica.es> 2014-02-11 Sergio Martin <sergio.martin@artica.es>
* mobile/operation/events.php: Inverse the order * mobile/operation/events.php: Inverse the order

View File

@ -767,7 +767,7 @@ class Events {
else { else {
$this->addJavascriptAddBottom(); $this->addJavascriptAddBottom();
return array('table' => $table->getHTML() . $no_events, 'data' => $events_db); return array('table' => $table->getHTML() . $no_events);
} }
$ui->contentAddLinkListener('list_events'); $ui->contentAddLinkListener('list_events');
@ -923,19 +923,17 @@ class Events {
$(\"#loading_rows\").hide(); $(\"#loading_rows\").hide();
} }
else { else {
var new_rows = \"\";
$.each(data.events, function(key, event) { $.each(data.events, function(key, event) {
$(\"table#\"+table_id+\" tbody\").prepend( new_rows = \"<tr class='events \" + event[2] + \"'>\" +
\"<tr class='events \" + event[2] + \"'>\" +
\"<td class='cell_0'>\" + \"<td class='cell_0'>\" +
event[0] + event[0] +
\"</td>\" + \"</td>\" +
\"<td>\" + event[1] + \"</td>\" + \"<td>\" + event[1] + \"</td>\" +
\"</tr>\"); \"</tr>\" + new_rows;
}); });
//$.mobile.changePage(); $(\"table#\"+table_id+\" tbody\").append(new_rows);
//$(document).page();
//$(\"table#list_events\").table().table('refresh');
load_more_rows = 1; load_more_rows = 1;
refresh_link_listener_list_events(); refresh_link_listener_list_events();