fomantic-ui 2.9.0-beta.300 → 2.9.0-beta.303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.all-contributorsrc +23 -1
- package/CONTRIBUTORS.md +3 -1
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +31 -19
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +12 -6
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/form.css +2 -2
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +2 -2
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +7 -3
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +3 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +50 -50
- package/dist/semantic.js +75 -51
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/collections/form.less +3 -4
- package/src/definitions/modules/dropdown.js +30 -18
- package/src/definitions/modules/embed.js +11 -5
- package/src/definitions/modules/modal.js +1 -1
- package/src/definitions/modules/rating.js +6 -2
- package/src/definitions/modules/transition.js +2 -0
package/.all-contributorsrc
CHANGED
@@ -80,7 +80,10 @@
|
|
80
80
|
"example",
|
81
81
|
"ideas",
|
82
82
|
"infra",
|
83
|
-
"review"
|
83
|
+
"review",
|
84
|
+
"a11y",
|
85
|
+
"security",
|
86
|
+
"maintenance"
|
84
87
|
]
|
85
88
|
},
|
86
89
|
{
|
@@ -618,6 +621,25 @@
|
|
618
621
|
"contributions": [
|
619
622
|
"code"
|
620
623
|
]
|
624
|
+
},
|
625
|
+
{
|
626
|
+
"login": "xamey",
|
627
|
+
"name": "xamey",
|
628
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/34269296?v=4",
|
629
|
+
"profile": "https://github.com/xamey",
|
630
|
+
"contributions": [
|
631
|
+
"code"
|
632
|
+
]
|
633
|
+
},
|
634
|
+
{
|
635
|
+
"login": "Inselhopper",
|
636
|
+
"name": "Ingrid Bluoss",
|
637
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/5477907?v=4",
|
638
|
+
"profile": "http://www.ingrid-bluoss.de",
|
639
|
+
"contributions": [
|
640
|
+
"code",
|
641
|
+
"a11y"
|
642
|
+
]
|
621
643
|
}
|
622
644
|
],
|
623
645
|
"contributorsPerLine": 4,
|
package/CONTRIBUTORS.md
CHANGED
@@ -10,7 +10,7 @@ This is a list of all project contributors powered by [All Contributors](https:/
|
|
10
10
|
<td align="center"><a href="https://github.com/hammy2899"><img src="https://avatars2.githubusercontent.com/u/11588822?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Sean</b></sub></a><br /><a href="#question-hammy2899" title="Answering Questions">💬</a> <a href="https://github.com/fomantic/Fomantic-UI/issues?q=author%3Ahammy2899" title="Bug reports">🐛</a> <a href="#blog-hammy2899" title="Blogposts">📝</a> <a href="#business-hammy2899" title="Business development">💼</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=hammy2899" title="Code">💻</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=hammy2899" title="Documentation">📖</a> <a href="#design-hammy2899" title="Design">🎨</a> <a href="#example-hammy2899" title="Examples">💡</a> <a href="#ideas-hammy2899" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-hammy2899" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-hammy2899" title="Maintenance">🚧</a> <a href="#platform-hammy2899" title="Packaging/porting to new platform">📦</a> <a href="#projectManagement-hammy2899" title="Project Management">📆</a> <a href="https://github.com/fomantic/Fomantic-UI/pulls?q=is%3Apr+reviewed-by%3Ahammy2899" title="Reviewed Pull Requests">👀</a> <a href="#security-hammy2899" title="Security">🛡️</a> <a href="#tool-hammy2899" title="Tools">🔧</a> <a href="#tutorial-hammy2899" title="Tutorials">✅</a> <a href="#talk-hammy2899" title="Talks">📢</a></td>
|
11
11
|
<td align="center"><a href="https://github.com/prudho"><img src="https://avatars0.githubusercontent.com/u/7557689?v=4?s=60" width="60px;" alt=""/><br /><sub><b>prudho</b></sub></a><br /><a href="#question-prudho" title="Answering Questions">💬</a> <a href="https://github.com/fomantic/Fomantic-UI/issues?q=author%3Aprudho" title="Bug reports">🐛</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=prudho" title="Code">💻</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=prudho" title="Documentation">📖</a> <a href="#example-prudho" title="Examples">💡</a> <a href="#ideas-prudho" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-prudho" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/fomantic/Fomantic-UI/pulls?q=is%3Apr+reviewed-by%3Aprudho" title="Reviewed Pull Requests">👀</a></td>
|
12
12
|
<td align="center"><a href="https://github.com/ColinFrick"><img src="https://avatars1.githubusercontent.com/u/5517677?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Colin Frick</b></sub></a><br /><a href="#question-ColinFrick" title="Answering Questions">💬</a> <a href="https://github.com/fomantic/Fomantic-UI/issues?q=author%3AColinFrick" title="Bug reports">🐛</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=ColinFrick" title="Code">💻</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=ColinFrick" title="Documentation">📖</a> <a href="#example-ColinFrick" title="Examples">💡</a> <a href="#ideas-ColinFrick" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-ColinFrick" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/fomantic/Fomantic-UI/pulls?q=is%3Apr+reviewed-by%3AColinFrick" title="Reviewed Pull Requests">👀</a></td>
|
13
|
-
<td align="center"><a href="https://rasterbuster.lubber.de"><img src="https://avatars1.githubusercontent.com/u/18379884?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Marco 'Lubber' Wienkoop</b></sub></a><br /><a href="#question-lubber-de" title="Answering Questions">💬</a> <a href="https://github.com/fomantic/Fomantic-UI/issues?q=author%3Alubber-de" title="Bug reports">🐛</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=lubber-de" title="Code">💻</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=lubber-de" title="Documentation">📖</a> <a href="#example-lubber-de" title="Examples">💡</a> <a href="#ideas-lubber-de" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-lubber-de" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/fomantic/Fomantic-UI/pulls?q=is%3Apr+reviewed-by%3Alubber-de" title="Reviewed Pull Requests">👀</a></td>
|
13
|
+
<td align="center"><a href="https://rasterbuster.lubber.de"><img src="https://avatars1.githubusercontent.com/u/18379884?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Marco 'Lubber' Wienkoop</b></sub></a><br /><a href="#question-lubber-de" title="Answering Questions">💬</a> <a href="https://github.com/fomantic/Fomantic-UI/issues?q=author%3Alubber-de" title="Bug reports">🐛</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=lubber-de" title="Code">💻</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=lubber-de" title="Documentation">📖</a> <a href="#example-lubber-de" title="Examples">💡</a> <a href="#ideas-lubber-de" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-lubber-de" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/fomantic/Fomantic-UI/pulls?q=is%3Apr+reviewed-by%3Alubber-de" title="Reviewed Pull Requests">👀</a> <a href="#a11y-lubber-de" title="Accessibility">️️️️♿️</a> <a href="#security-lubber-de" title="Security">🛡️</a> <a href="#maintenance-lubber-de" title="Maintenance">🚧</a></td>
|
14
14
|
</tr>
|
15
15
|
<tr>
|
16
16
|
<td align="center"><a href="https://www.exoego.net/"><img src="https://avatars2.githubusercontent.com/u/127635?v=4?s=60" width="60px;" alt=""/><br /><sub><b>TATSUNO Yasuhiro</b></sub></a><br /><a href="https://github.com/fomantic/Fomantic-UI/issues?q=author%3Aexoego" title="Bug reports">🐛</a> <a href="#blog-exoego" title="Blogposts">📝</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=exoego" title="Code">💻</a> <a href="https://github.com/fomantic/Fomantic-UI/commits?author=exoego" title="Documentation">📖</a> <a href="https://github.com/fomantic/Fomantic-UI/pulls?q=is%3Apr+reviewed-by%3Aexoego" title="Reviewed Pull Requests">👀</a></td>
|
@@ -99,6 +99,8 @@ This is a list of all project contributors powered by [All Contributors](https:/
|
|
99
99
|
<tr>
|
100
100
|
<td align="center"><a href="https://naveensrinivasan.dev"><img src="https://avatars.githubusercontent.com/u/172697?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Naveen</b></sub></a><br /><a href="#security-naveensrinivasan" title="Security">🛡️</a></td>
|
101
101
|
<td align="center"><a href="https://www.mvorisek.com/"><img src="https://avatars.githubusercontent.com/u/2228672?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Michael Voříšek</b></sub></a><br /><a href="https://github.com/fomantic/Fomantic-UI/commits?author=mvorisek" title="Code">💻</a></td>
|
102
|
+
<td align="center"><a href="https://github.com/xamey"><img src="https://avatars.githubusercontent.com/u/34269296?v=4?s=60" width="60px;" alt=""/><br /><sub><b>xamey</b></sub></a><br /><a href="https://github.com/fomantic/Fomantic-UI/commits?author=xamey" title="Code">💻</a></td>
|
103
|
+
<td align="center"><a href="http://www.ingrid-bluoss.de"><img src="https://avatars.githubusercontent.com/u/5477907?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Ingrid Bluoss</b></sub></a><br /><a href="https://github.com/fomantic/Fomantic-UI/commits?author=Inselhopper" title="Code">💻</a> <a href="#a11y-Inselhopper" title="Accessibility">️️️️♿️</a></td>
|
102
104
|
</tr>
|
103
105
|
</table>
|
104
106
|
|
package/dist/components/ad.css
CHANGED
package/dist/components/api.js
CHANGED
package/dist/components/card.css
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* # Fomantic-UI 2.9.0-beta.
|
2
|
+
* # Fomantic-UI 2.9.0-beta.303+76dc367 - Dropdown
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
4
4
|
*
|
5
5
|
*
|
@@ -111,6 +111,7 @@ $.fn.dropdown = function(parameters) {
|
|
111
111
|
module.error(error.noNormalize, element);
|
112
112
|
}
|
113
113
|
|
114
|
+
module.create.id();
|
114
115
|
module.setup.layout();
|
115
116
|
|
116
117
|
if(settings.values) {
|
@@ -124,7 +125,6 @@ $.fn.dropdown = function(parameters) {
|
|
124
125
|
module.save.defaults();
|
125
126
|
module.restore.selected();
|
126
127
|
|
127
|
-
module.create.id();
|
128
128
|
module.bind.events();
|
129
129
|
|
130
130
|
module.observeChanges();
|
@@ -366,11 +366,20 @@ $.fn.dropdown = function(parameters) {
|
|
366
366
|
}
|
367
367
|
if( module.is.search() && !module.has.search() ) {
|
368
368
|
module.verbose('Adding search input');
|
369
|
+
var
|
370
|
+
labelNode = $module.prev('label')
|
371
|
+
;
|
369
372
|
$search = $('<input />')
|
370
373
|
.addClass(className.search)
|
371
374
|
.prop('autocomplete', module.is.chrome() ? 'fomantic-search' : 'off')
|
372
|
-
.insertBefore($text)
|
373
375
|
;
|
376
|
+
if (labelNode.length) {
|
377
|
+
if (!labelNode.attr('id')) {
|
378
|
+
labelNode.attr('id', module.get.id() + '_formLabel');
|
379
|
+
}
|
380
|
+
$search.attr('aria-labelledby', labelNode.attr('id'));
|
381
|
+
}
|
382
|
+
$search.insertBefore($text);
|
374
383
|
}
|
375
384
|
if( module.is.multiple() && module.is.searchSelection() && !module.has.sizer()) {
|
376
385
|
module.create.sizer();
|
@@ -1153,7 +1162,7 @@ $.fn.dropdown = function(parameters) {
|
|
1153
1162
|
if(module.is.multiple()) {
|
1154
1163
|
module.remove.activeLabel();
|
1155
1164
|
}
|
1156
|
-
if(!focused && !module.is.active() && (settings.showOnFocus || (event.type !== 'focus' && event.type !== 'focusin'))) {
|
1165
|
+
if(!focused && !module.is.active() && (settings.showOnFocus || (event.type !== 'focus' && event.type !== 'focusin')) && event.type !== 'touchstart') {
|
1157
1166
|
focused = true;
|
1158
1167
|
module.search();
|
1159
1168
|
}
|
@@ -4248,7 +4257,8 @@ $.fn.dropdown.settings.templates = {
|
|
4248
4257
|
var
|
4249
4258
|
placeholder = select.placeholder || false,
|
4250
4259
|
html = '',
|
4251
|
-
escape = $.fn.dropdown.settings.templates.escape
|
4260
|
+
escape = $.fn.dropdown.settings.templates.escape,
|
4261
|
+
deQuote = $.fn.dropdown.settings.templates.deQuote
|
4252
4262
|
;
|
4253
4263
|
html += '<i class="dropdown icon"></i>';
|
4254
4264
|
if(placeholder) {
|
@@ -4257,7 +4267,7 @@ $.fn.dropdown.settings.templates = {
|
|
4257
4267
|
else {
|
4258
4268
|
html += '<div class="text"></div>';
|
4259
4269
|
}
|
4260
|
-
html += '<div class="'+className.menu+'">';
|
4270
|
+
html += '<div class="'+deQuote(className.menu)+'">';
|
4261
4271
|
html += $.fn.dropdown.settings.templates.menu(select, fields, preserveHTML,className);
|
4262
4272
|
html += '</div>';
|
4263
4273
|
return html;
|
@@ -4295,27 +4305,27 @@ $.fn.dropdown.settings.templates = {
|
|
4295
4305
|
: '',
|
4296
4306
|
hasDescription = (escape(option[fields.description] || '', preserveHTML) != '')
|
4297
4307
|
;
|
4298
|
-
html += '<div class="'+ maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ?
|
4308
|
+
html += '<div class="'+ deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] ? option[fields.class] : className.item))+'" data-value="' + deQuote(option[fields.value],true) + '"' + maybeText + '>';
|
4299
4309
|
if (isMenu) {
|
4300
4310
|
html += '<i class="'+ (itemType.indexOf('left') !== -1 ? 'left' : '') + ' dropdown icon"></i>';
|
4301
4311
|
}
|
4302
4312
|
if(option[fields.image]) {
|
4303
|
-
html += '<img class="'+(option[fields.imageClass] ?
|
4313
|
+
html += '<img class="'+deQuote(option[fields.imageClass] ? option[fields.imageClass] : className.image)+'" src="' + deQuote(option[fields.image]) + '">';
|
4304
4314
|
}
|
4305
4315
|
if(option[fields.icon]) {
|
4306
|
-
html += '<i class="'+deQuote(option[fields.icon]
|
4316
|
+
html += '<i class="'+deQuote(option[fields.icon]+' '+(option[fields.iconClass] ? option[fields.iconClass] : className.icon))+'"></i>';
|
4307
4317
|
}
|
4308
4318
|
if(hasDescription){
|
4309
|
-
html += '<span class="'+ className.description +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
|
4310
|
-
html += (!isMenu) ? '<span class="'+ className.text + '">' : '';
|
4319
|
+
html += '<span class="'+ deQuote(className.description) +'">'+ escape(option[fields.description] || '', preserveHTML) + '</span>';
|
4320
|
+
html += (!isMenu) ? '<span class="'+ deQuote(className.text) + '">' : '';
|
4311
4321
|
}
|
4312
4322
|
if (isMenu) {
|
4313
|
-
html += '<span class="' + className.text + '">';
|
4323
|
+
html += '<span class="' + deQuote(className.text) + '">';
|
4314
4324
|
}
|
4315
4325
|
html += escape(option[fields.name] || '', preserveHTML);
|
4316
4326
|
if (isMenu) {
|
4317
4327
|
html += '</span>';
|
4318
|
-
html += '<div class="' + itemType + '">';
|
4328
|
+
html += '<div class="' + deQuote(itemType) + '">';
|
4319
4329
|
html += $.fn.dropdown.settings.templates.menu(option, fields, preserveHTML, className);
|
4320
4330
|
html += '</div>';
|
4321
4331
|
} else if(hasDescription){
|
@@ -4324,18 +4334,18 @@ $.fn.dropdown.settings.templates = {
|
|
4324
4334
|
html += '</div>';
|
4325
4335
|
} else if (itemType === 'header') {
|
4326
4336
|
var groupName = escape(option[fields.name] || '', preserveHTML),
|
4327
|
-
groupIcon = option[fields.icon] ?
|
4337
|
+
groupIcon = deQuote(option[fields.icon] ? option[fields.icon] : className.groupIcon)
|
4328
4338
|
;
|
4329
4339
|
if(groupName !== '' || groupIcon !== '') {
|
4330
|
-
html += '<div class="' + (option[fields.class] ?
|
4340
|
+
html += '<div class="' + deQuote(option[fields.class] ? option[fields.class] : className.header) + '">';
|
4331
4341
|
if (groupIcon !== '') {
|
4332
|
-
html += '<i class="' + groupIcon + ' ' + (option[fields.iconClass] ?
|
4342
|
+
html += '<i class="' + deQuote(groupIcon + ' ' + (option[fields.iconClass] ? option[fields.iconClass] : className.icon)) + '"></i>';
|
4333
4343
|
}
|
4334
4344
|
html += groupName;
|
4335
4345
|
html += '</div>';
|
4336
4346
|
}
|
4337
4347
|
if(option[fields.divider]){
|
4338
|
-
html += '<div class="'+className.divider+'"></div>';
|
4348
|
+
html += '<div class="'+deQuote(className.divider)+'"></div>';
|
4339
4349
|
}
|
4340
4350
|
}
|
4341
4351
|
});
|
@@ -4345,8 +4355,10 @@ $.fn.dropdown.settings.templates = {
|
|
4345
4355
|
// generates label for multiselect
|
4346
4356
|
label: function(value, text, preserveHTML, className) {
|
4347
4357
|
var
|
4348
|
-
escape = $.fn.dropdown.settings.templates.escape
|
4349
|
-
|
4358
|
+
escape = $.fn.dropdown.settings.templates.escape,
|
4359
|
+
deQuote = $.fn.dropdown.settings.templates.deQuote
|
4360
|
+
;
|
4361
|
+
return escape(text,preserveHTML) + '<i class="'+deQuote(className.delete)+' icon"></i>';
|
4350
4362
|
},
|
4351
4363
|
|
4352
4364
|
|