Commit r2381: https://sourceforge.net/p/mrbs/code/2381/
------------------------------------------------------------------------
r2381 | cimorrison | 2012-08-14 08:36:35 +0100 (Tue, 14 Aug 2012) | 1 line
Changed paths:
M /mrbs/trunk/web/edit_entry.php
M /mrbs/trunk/web/js/edit_users.js.php
M /mrbs/trunk/web/js/pending.js.php
M /mrbs/trunk/web/js/report.js.php
M /mrbs/trunk/web/js/search.js.php
Created new arrays and objects using literals instead of new Array()/Object()
------------------------------------------------------------------------
Index: mrbs/trunk/web/js/pending.js.php
===================================================================
--- mrbs/trunk/web/js/pending.js.php (revision 2380)
+++ mrbs/trunk/web/js/pending.js.php (revision 2381)
@@ -82,7 +82,7 @@
// 100% - I'm not sure why - but I have left the code in]
?>
maintable.find('tr').eq(0).find('th').each(function(i){
- var def = new Object();
+ var def = {};
switch (i)
{
case 0: <?php // expand control ?>
@@ -108,7 +108,7 @@
});
<?php // Turn the table into a datatable ?>
- var tableOptions = new Object();
+ var tableOptions = {};
tableOptions.sScrollXInner = "100%";
tableOptions.aoColumnDefs = colDefsMain;
<?php
Index: mrbs/trunk/web/js/search.js.php
===================================================================
--- mrbs/trunk/web/js/search.js.php (revision 2380)
+++ mrbs/trunk/web/js/search.js.php (revision 2381)
@@ -46,7 +46,7 @@
}).appendTo(searchForm);
}
- var tableOptions = new Object();
+ var tableOptions = {};
<?php
// Use an Ajax source - gives much better performance for large tables
list( ,$query_string) = explode('?', $HTTP_REFERER, 2);
Index: mrbs/trunk/web/js/edit_users.js.php
===================================================================
--- mrbs/trunk/web/js/edit_users.js.php (revision 2380)
+++ mrbs/trunk/web/js/edit_users.js.php (revision 2381)
@@ -18,7 +18,7 @@
<?php // Turn the list of users into a dataTable ?>
- var tableOptions = new Object();
+ var tableOptions = {};
<?php
// Use an Ajax source if we can - gives much better performance for large
tables
if (function_exists('json_encode'))
Index: mrbs/trunk/web/js/report.js.php
===================================================================
--- mrbs/trunk/web/js/report.js.php (revision 2380)
+++ mrbs/trunk/web/js/report.js.php (revision 2381)
@@ -152,7 +152,7 @@
<?php
// Turn the list of users into a dataTable
?>
- var tableOptions = new Object();
+ var tableOptions = {};
<?php
// Use an Ajax source if we're able to - gives much better
// performance for large tables
Index: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php (revision 2380)
+++ mrbs/trunk/web/edit_entry.php (revision 2381)
@@ -1118,12 +1118,12 @@
//<![CDATA[
var currentArea = <?php echo $area_id ?>;
-var areas = new Array();
+var areas = [];
<?php
// give JavaScript a copy of the PHP array $areas
foreach ($areas as $area)
{
- echo "areas[${area['id']}] = new Array();\n";
+ echo "areas[${area['id']}] = [];\n";
foreach ($area as $key => $value)
{
if (in_array($key, array('area_name', 'max_duration_units')))
@@ -1152,7 +1152,7 @@
// fields. These will be the 'name' and 'rooms' fields and any other
fields
// defined by the config variable $is_mandatory_field
?>
- validationMessages.vocab = new Object();
+ validationMessages.vocab = {};
validationMessages.vocab['name'] = '';
validationMessages.vocab['rooms'] = '';
<?php
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits