From e882c76e69496a36223a1f3323a957ce1660e981 Mon Sep 17 00:00:00 2001
From: Stephen Morton Output
-
+
+
-
+
@@ -121,7 +122,7 @@ Output
+
diff --git a/src/plugins/bt-checkbox/plugin.js b/src/plugins/bt-checkbox/plugin.js
index 7a7311c2..7f811bf9 100644
--- a/src/plugins/bt-checkbox/plugin.js
+++ b/src/plugins/bt-checkbox/plugin.js
@@ -31,11 +31,7 @@ QueryBuilder.define('bt-checkbox', function(options) {
var color = filter.colors[key] || filter.colors._def_ || options.color;
var id = name + '_' + (i++);
- h.value+= '\
-
' +
'' +
diff --git a/tests/plugins-gui.module.js b/tests/plugins-gui.module.js
index 00a131a1..b7f91fe4 100644
--- a/tests/plugins-gui.module.js
+++ b/tests/plugins-gui.module.js
@@ -131,9 +131,9 @@ $(function(){
$b.queryBuilder('validate');
assert.equal(
- $('#builder_group_0 .error-container').eq(0).data('toggle'),
+ $('#builder_group_0 .error-container').eq(0).data('bs-toggle'),
'tooltip',
- 'Should have added data-toggle="tooltip" in the template'
+ 'Should have added data-bs-toggle="tooltip" in the template'
);
assert.equal(
@@ -201,7 +201,7 @@ $(function(){
});
assert.ok(
- $('#builder_rule_0 button.filter-description').data('toggle') == 'popover',
+ $('#builder_rule_0 button.filter-description').data('bs-toggle') == 'popover',
'Rule should contain a new button enabled with Popover'
);
@@ -216,7 +216,7 @@ $(function(){
});
assert.ok(
- $('#builder_rule_0 button.filter-description').data('toggle') == 'bootbox',
+ $('#builder_rule_0 button.filter-description').data('bs-toggle') == 'bootbox',
'Rule should contain a new button enabled with Bootbox'
);
});
From 60e5e818b3a6dda258f573ac679e4ea0ef4a5e3b Mon Sep 17 00:00:00 2001
From: Stephen Morton Output
-
+
@@ -146,7 +146,7 @@ Output
plugins: {
'bt-tooltip-errors': { delay: 100 },
'sortable': null,
- 'filter-description': { mode: 'bootbox' },
+ // 'filter-description': { mode: 'bootbox' },
'bt-selectpicker': null,
// 'chosen-selectpicker': null,
'unique-filter': null,
From 6692f82d62bef2513af560659fcd0b13def7cba7 Mon Sep 17 00:00:00 2001
From: David Ethell Output
-
+
@@ -147,7 +147,7 @@ Output
'bt-tooltip-errors': { delay: 100 },
'sortable': null,
// 'filter-description': { mode: 'bootbox' },
- 'bt-selectpicker': null,
+ // 'bt-selectpicker': null,
// 'chosen-selectpicker': null,
'unique-filter': null,
'bt-checkbox': { color: 'primary' },
From ae3fb1aa74bd6f4b19340e29c825da9dee1195c9 Mon Sep 17 00:00:00 2001
From: Liam
From 56bd7c954bc0326b3a0f29e6a8f6db89f576befd Mon Sep 17 00:00:00 2001
From: Liam jQuery QueryBuilder
Output
// change theme
$('.change-theme').on('click', function() {
$('#qb-theme').replaceWith('');
- $('#bt-theme').replaceWith('');
+ $('[data-bs-theme]').attr('data-bs-theme', $(this).data('bt'));
});
// set rules
From 45066c2039789b382c73818e1fe7a090b57a7f0f Mon Sep 17 00:00:00 2001
From: Liam Output
// set filters
$('.set-filters').on('click', function() {
$(this).prop('disabled', true);
- // $(this).tooltip('hide');
+ bootstrap.Tooltip.getInstance($(this)).hide();
// add a new filter after 'state'
$('#builder').queryBuilder('addFilter',
From 8fd9d3833c6f7006f4521e2a6bf3ac73fa4f5645 Mon Sep 17 00:00:00 2001
From: Liam
jQuery QueryBuilder
From 6166b29d4da7a01af1a59fb6bd16257d118cbdab Mon Sep 17 00:00:00 2001
From: Liam