Skip to content

Commit

Permalink
Completed query builder to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Sep 5, 2014
1 parent 9480791 commit b48f13c
Show file tree
Hide file tree
Showing 5 changed files with 507 additions and 172 deletions.
5 changes: 5 additions & 0 deletions src/baw.configuration.tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,10 @@ angular.module('bawApp.configuration', ['url'])
},
baseMessage: "Your current internet browser ({name}, version {version}) is {reason}. <br/> Consider updating or try using <a target='_blank' href='https://www.google.com.au/intl/en_au/chrome/browser/' >Google Chrome</a>.",
localStorageKey: "browserSupport.checked"
},
queryBuilder: {
defaultPage: 0,
defaultPageItems: 10,
defaultSortDirection: "asc"
}
});
6 changes: 6 additions & 0 deletions src/common/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Math.randomInt = function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
};

Math.isInt = function isInt(value) {
return !isNaN(value) &&
parseInt(Number(value)) == value &&
!isNaN(parseInt(value, 10));
};

// from MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round#Example:_Decimal_rounding
// Closure
(function(){
Expand Down
Loading

0 comments on commit b48f13c

Please sign in to comment.