/**
Spinner. A wrapper for FuelUX spinner element.
It's just a wrapper so you still need to include FuelUX spinner script first.
*/
(function($ , undefined) {
//a wrapper for fuelux spinner
function Ace_Spinner(element , options) {
var max = options.max
max = (''+max).length
var width = parseInt(Math.max((max * 20 + 40) , 90))
var $element = $(element);
$element.addClass('spinner-input form-control').wrap('
')
var $parent_div = $element.closest('.ace-spinner').spinner(options).wrapInner("")
var $spinner = $parent_div.data('spinner');
if(options.on_sides)
{
$element
.before('