Revision: 2515
https://sourceforge.net/p/mrbs/code/2515/
Author: cimorrison
Date: 2012-10-22 13:38:21 +0000 (Mon, 22 Oct 2012)
Log Message:
-----------
Fixed bug preventing bulk delete working
Modified Paths:
--------------
mrbs/trunk/web/js/report.js.php
mrbs/trunk/web/report.php
Modified: mrbs/trunk/web/js/report.js.php
===================================================================
--- mrbs/trunk/web/js/report.js.php 2012-10-22 13:09:44 UTC (rev 2514)
+++ mrbs/trunk/web/js/report.js.php 2012-10-22 13:38:21 UTC (rev 2515)
@@ -235,7 +235,7 @@
var batch = [];
for (var i=0; i<nEntries; i++)
{
- batch.push(aData[i][0]);
+ batch.push($(aData[i][0]).data('id'));
if (batch.length >= batchSize)
{
batches.push(batch);
Modified: mrbs/trunk/web/report.php
===================================================================
--- mrbs/trunk/web/report.php 2012-10-22 13:09:44 UTC (rev 2514)
+++ mrbs/trunk/web/report.php 2012-10-22 13:38:21 UTC (rev 2515)
@@ -418,8 +418,10 @@
switch ($field)
{
case 'name':
- // Add a link to the entry
- $value = "<a href=\"view_entry.php?id=" . $data['id'] . "\"
title=\"$value\">$value</a>";
+ // Add a link to the entry and also a data-id value for the Bulk
Delete JavaScript
+ $value = "<a href=\"view_entry.php?id=" . $data['id'] . "\"" .
+ " data-id=\"" . $data['id'] . "\"" .
+ " title=\"$value\">$value</a>";
break;
case 'end_time':
// Process the duration and then fall through to the end_time
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits