Remove percentage sign from number_sorter regex (#1003)

This commit is contained in:
jekkos
2016-11-26 15:54:04 +01:00
parent 1ed76fa091
commit 7d4dff0a37
3 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@
<link rel="stylesheet" type="text/css" href="dist/style.css"/>
<!-- end mincss template tags -->
<!-- start minjs template tags -->
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=cb5510f85a"></script>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=bc5842b19a"></script>
<!-- end minjs template tags -->
<?php endif; ?>

View File

File diff suppressed because one or more lines are too long

View File

@@ -347,8 +347,8 @@ $(document).ready(function() {
function number_sorter(a, b)
{
a = +a.replace(/[^%\-0-9\.]+/g,"");
b = +b.replace(/[^%\-0-9\.]+/g,"");
a = +a.replace(/[^\-0-9\.]+/g,"");
b = +b.replace(/[^\-0-9\.]+/g,"");
if (a > b) return 1;
if (a < b) return -1;
return 0;