1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

BC fixes for <select> form elements

This commit is contained in:
Cameron
2013-02-23 03:01:57 -08:00
parent 76ac4b39d5
commit 63c52ca05d
3 changed files with 24 additions and 17 deletions

View File

@@ -48,15 +48,29 @@ $(document).ready(function()
e.stopPropagation();
});
$(".e-multiselect").multiselect();
$('.e-select').selectpicker();
// BC Compatible
$("select.tbox").each(function() {
var multi = $(this).attr('multiple');
if(multi === undefined)
{
$(this).selectpicker();
}
else
{
$(this).multiselect();
}
});
// $(".e-spinner").spinner(); //FIXME breaks tooltips etc.
$(".e-radio-multi").each(function() {
$(".e-radio-multi").each(function() {
// $(this).nextAll(".field-help").hide();
// $(this).nextAll(":input").tipsy({title: 'hello'});
@@ -65,9 +79,6 @@ $(document).ready(function()
$(".e-tags").tagit();
// $(".e-multiselect").chosen();
// Decorate
$(".adminlist tr:even").addClass("even");