Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack compatible #257

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-colorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,4 @@
$(document)
.on('click.bfhcolorpicker.data-api', clearMenus);

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-countries.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@
});
});

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-currencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@
});


}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,4 +581,4 @@
$(document)
.on('click.bfhdatepicker.data-api', clearMenus);

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@
});
});

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-fontsizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@
});
});

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-googlefonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,4 @@
});
});

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@
return this.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
};

}(window.jQuery);
}(jQuery);
4 changes: 2 additions & 2 deletions js/bootstrap-formhelpers-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
value = this.options.min;
}

return parseInt(value);
return parseInt(value, 10);
},

formatNumber: function() {
Expand Down Expand Up @@ -297,4 +297,4 @@
* =================================== */


}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-phone.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,4 @@
});
});

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-selectbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@
$(document)
.on('click.bfhselectbox.data-api', clearMenus);

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@
});
});

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-states.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,4 @@
});
});

}(window.jQuery);
}(jQuery);
10 changes: 6 additions & 4 deletions js/bootstrap-formhelpers-timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,11 @@
var $timepicker;
if ($(el).hasClass('bfh-timepicker')) {
$timepicker = $(el).data('bfhtimepicker');
$timepicker.options.time = val;
$timepicker.setTime();
$timepicker.updatePopover();
if ($timepicker) {
$timepicker.options.time = val;
$timepicker.setTime();
$timepicker.updatePopover();
}
} else if (origHook) {
return origHook.set(el,val);
}
Expand Down Expand Up @@ -390,4 +392,4 @@
$(document)
.on('click.bfhtimepicker.data-api', clearMenus);

}(window.jQuery);
}(jQuery);
2 changes: 1 addition & 1 deletion js/bootstrap-formhelpers-timezones.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@
});
});

}(window.jQuery);
}(jQuery);