From 749f76186f07e7967dab36e0c187108f890cfaa0 Mon Sep 17 00:00:00 2001 From: Abdallah Alyamni Date: Sun, 23 Jul 2023 13:58:03 +0300 Subject: [PATCH 1/3] - Make title accept html --- js/bootstrap-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js index 7055df413..b87150e26 100644 --- a/js/bootstrap-select.js +++ b/js/bootstrap-select.js @@ -1962,7 +1962,7 @@ } if (option.title) { - titleOptions.text = option.title; + titleOptions.content = option.title.toString(); } else if (option.content && that.options.showContent) { titleOptions.content = option.content.toString(); hasContent = true; From 95e56b224dd70b16138abbd6d39718604755d68d Mon Sep 17 00:00:00 2001 From: Abdallah Alyamni Date: Sun, 20 Aug 2023 11:45:46 +0300 Subject: [PATCH 2/3] - render title as html if data-type = 'html-title' --- js/bootstrap-select.js | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js index b87150e26..610875463 100644 --- a/js/bootstrap-select.js +++ b/js/bootstrap-select.js @@ -1962,7 +1962,11 @@ } if (option.title) { - titleOptions.content = option.title.toString(); + if (option.getAttribute('data-type') == 'html-title') { + titleOptions.content = option.title.toString(); + } else { + titleOptions.text = option.title; + } } else if (option.content && that.options.showContent) { titleOptions.content = option.content.toString(); hasContent = true; diff --git a/package.json b/package.json index fa13ad5da..840b64b56 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "bootstrap-select", + "name": "bootstrap-select-plus", "title": "bootstrap-select", "main": "dist/js/bootstrap-select.js", "description": "The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 4 support.", From 52896afc8b88f299ceace1a7650e5fbc347bb3b8 Mon Sep 17 00:00:00 2001 From: Abdallah Alyamni Date: Tue, 22 Aug 2023 14:33:16 +0300 Subject: [PATCH 3/3] - edit CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b1675a99..d2c6d8b74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # v1.14.0-beta3 (2021-04-20) -### Bug fixes +### Bug fixes edited - [#2634] Remove IE hacks in CSS - [#2669] Remove deprecated sass division with slash character