Browse Source

Build 2.1.4

pull/3277/head
Jack Lukic 9 years ago
committed by Jack
parent
commit
08d073dd18
10 changed files with 23 additions and 23 deletions
  1. 5
      dist/components/dropdown.js
  2. 2
      dist/components/dropdown.min.js
  3. 1
      dist/components/label.css
  4. 2
      dist/components/label.min.css
  5. 12
      dist/components/message.css
  6. 2
      dist/components/message.min.css
  7. 13
      dist/semantic.css
  8. 5
      dist/semantic.js
  9. 2
      dist/semantic.min.css
  10. 2
      dist/semantic.min.js

5
dist/components/dropdown.js

@ -1152,6 +1152,7 @@ $.fn.dropdown = function(parameters) {
hasSubMenu = ($subMenu.length> 0),
hasSelectedItem = ($selectedItem.length > 0),
selectedIsSelectable = ($selectedItem.not(selector.unselectable).length > 0),
delimiterPressed = (pressedKey == keys.delimiter && settings.allowAdditions && module.is.multiple()),
$nextItem,
isSubMenuItem,
newIndex
@ -1161,7 +1162,7 @@ $.fn.dropdown = function(parameters) {
if( module.is.visible() ) {
// enter (select or open sub-menu)
if(pressedKey == keys.enter) {
if(pressedKey == keys.enter || delimiterPressed) {
if(pressedKey == keys.enter && hasSelectedItem && hasSubMenu && !settings.allowCategorySelection) {
module.verbose('Pressed enter on unselectable category, opening sub menu');
pressedKey = keys.rightArrow;
@ -1278,7 +1279,7 @@ $.fn.dropdown = function(parameters) {
}
else {
// delimiter key
if(pressedKey == keys.delimiter && settings.allowAdditions && module.is.multiple()) {
if(delimiterPressed) {
event.preventDefault();
}
// down arrow (open menu)

2
dist/components/dropdown.min.js
File diff suppressed because it is too large
View File

1
dist/components/label.css

@ -16,7 +16,6 @@
.ui.label {
display: inline-block;
white-space: nowrap;
line-height: 1;
vertical-align: baseline;
margin: 0em 0.14285714em;

2
dist/components/label.min.css
File diff suppressed because it is too large
View File

12
dist/components/message.css

@ -68,33 +68,33 @@
}
/* List */
.ui.message ul.list {
.ui.message .list:not(.ui) {
text-align: left;
padding: 0em;
opacity: 0.85;
list-style-position: inside;
margin: 0.5em 0em 0em;
}
.ui.message ul.list:first-child {
.ui.message .list:not(.ui):first-child {
margin-top: 0em;
}
.ui.message ul.list:last-child {
.ui.message .list:not(.ui):last-child {
margin-bottom: 0em;
}
.ui.message ul.list li {
.ui.message .list:not(.ui) li {
position: relative;
list-style-type: none;
margin: 0em 0em 0.3em 1em;
padding: 0em;
}
.ui.message ul.list li:before {
.ui.message .list:not(.ui) li:before {
position: absolute;
content: '•';
left: -1em;
height: 100%;
vertical-align: baseline;
}
.ui.message ul.list li:last-child {
.ui.message .list:not(.ui) li:last-child {
margin-bottom: 0em;
}

2
dist/components/message.min.css
File diff suppressed because it is too large
View File

13
dist/semantic.css

@ -11189,7 +11189,6 @@ img.ui.bordered.image {
.ui.label {
display: inline-block;
white-space: nowrap;
line-height: 1;
vertical-align: baseline;
margin: 0em 0.14285714em;
@ -21822,7 +21821,7 @@ Floated Menu / Item
/* List */
.ui.message ul.list {
.ui.message .list:not(.ui) {
text-align: left;
padding: 0em;
opacity: 0.85;
@ -21830,22 +21829,22 @@ Floated Menu / Item
margin: 0.5em 0em 0em;
}
.ui.message ul.list:first-child {
.ui.message .list:not(.ui):first-child {
margin-top: 0em;
}
.ui.message ul.list:last-child {
.ui.message .list:not(.ui):last-child {
margin-bottom: 0em;
}
.ui.message ul.list li {
.ui.message .list:not(.ui) li {
position: relative;
list-style-type: none;
margin: 0em 0em 0.3em 1em;
padding: 0em;
}
.ui.message ul.list li:before {
.ui.message .list:not(.ui) li:before {
position: absolute;
content: '•';
left: -1em;
@ -21853,7 +21852,7 @@ Floated Menu / Item
vertical-align: baseline;
}
.ui.message ul.list li:last-child {
.ui.message .list:not(.ui) li:last-child {
margin-bottom: 0em;
}

5
dist/semantic.js

@ -5261,6 +5261,7 @@ $.fn.dropdown = function(parameters) {
hasSubMenu = ($subMenu.length> 0),
hasSelectedItem = ($selectedItem.length > 0),
selectedIsSelectable = ($selectedItem.not(selector.unselectable).length > 0),
delimiterPressed = (pressedKey == keys.delimiter && settings.allowAdditions && module.is.multiple()),
$nextItem,
isSubMenuItem,
newIndex
@ -5270,7 +5271,7 @@ $.fn.dropdown = function(parameters) {
if( module.is.visible() ) {
// enter (select or open sub-menu)
if(pressedKey == keys.enter) {
if(pressedKey == keys.enter || delimiterPressed) {
if(pressedKey == keys.enter && hasSelectedItem && hasSubMenu && !settings.allowCategorySelection) {
module.verbose('Pressed enter on unselectable category, opening sub menu');
pressedKey = keys.rightArrow;
@ -5387,7 +5388,7 @@ $.fn.dropdown = function(parameters) {
}
else {
// delimiter key
if(pressedKey == keys.delimiter && settings.allowAdditions && module.is.multiple()) {
if(delimiterPressed) {
event.preventDefault();
}
// down arrow (open menu)

2
dist/semantic.min.css
File diff suppressed because it is too large
View File

2
dist/semantic.min.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save