mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-04 13:54:51 -04:00
Remove percentage sign from number_sorter regex (#1003)
This commit is contained in:
@@ -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; ?>
|
||||
|
||||
|
||||
2
public/dist/opensourcepos.min.js
vendored
2
public/dist/opensourcepos.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user