Browse Source

fixes bug in select dropdown

Former-commit-id: 1342e2567f
Former-commit-id: de7a69befc
pull/258/head
Jack Lukic 11 years ago
parent
commit
32ec2caac7
7 changed files with 67 additions and 52 deletions
  1. 23
      build/minified/modules/dropdown.js
  2. 2
      build/minified/modules/dropdown.min.js
  3. 23
      build/packaged/modules/dropdown.js
  4. 2
      build/packaged/semantic.min.js.REMOVED.git-id
  5. 23
      build/uncompressed/modules/dropdown.js
  6. 23
      node/src/files/components/semantic/modules/dropdown.js
  7. 23
      src/modules/dropdown.js

23
build/minified/modules/dropdown.js

@ -226,7 +226,7 @@ $.fn.dropdown = function(parameters) {
}
})
;
return $selectedItem;
return $selectedItem || false;
}
},
@ -243,16 +243,19 @@ $.fn.dropdown = function(parameters) {
var
selectedValue = value || $input.val(),
$selectedItem = module.get.item(value),
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text()
selectedText
;
module.debug('Setting selected menu item to', $selectedItem);
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
if($selectedItem) {
module.debug('Setting selected menu item to', $selectedItem);
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text();
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
}
}
},

2
build/minified/modules/dropdown.min.js
File diff suppressed because it is too large
View File

23
build/packaged/modules/dropdown.js

@ -226,7 +226,7 @@ $.fn.dropdown = function(parameters) {
}
})
;
return $selectedItem;
return $selectedItem || false;
}
},
@ -243,16 +243,19 @@ $.fn.dropdown = function(parameters) {
var
selectedValue = value || $input.val(),
$selectedItem = module.get.item(value),
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text()
selectedText
;
module.debug('Setting selected menu item to', $selectedItem);
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
if($selectedItem) {
module.debug('Setting selected menu item to', $selectedItem);
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text();
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
}
}
},

2
build/packaged/semantic.min.js.REMOVED.git-id

@ -1 +1 @@
759e08aaffde4c9f6d626ef0fc02dd08c46afecd
7d3c8b4fe3fb583f87cf300a7c5210b2e18ea1c2

23
build/uncompressed/modules/dropdown.js

@ -226,7 +226,7 @@ $.fn.dropdown = function(parameters) {
}
})
;
return $selectedItem;
return $selectedItem || false;
}
},
@ -243,16 +243,19 @@ $.fn.dropdown = function(parameters) {
var
selectedValue = value || $input.val(),
$selectedItem = module.get.item(value),
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text()
selectedText
;
module.debug('Setting selected menu item to', $selectedItem);
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
if($selectedItem) {
module.debug('Setting selected menu item to', $selectedItem);
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text();
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
}
}
},

23
node/src/files/components/semantic/modules/dropdown.js

@ -226,7 +226,7 @@ $.fn.dropdown = function(parameters) {
}
})
;
return $selectedItem;
return $selectedItem || false;
}
},
@ -243,16 +243,19 @@ $.fn.dropdown = function(parameters) {
var
selectedValue = value || $input.val(),
$selectedItem = module.get.item(value),
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text()
selectedText
;
module.debug('Setting selected menu item to', $selectedItem);
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
if($selectedItem) {
module.debug('Setting selected menu item to', $selectedItem);
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text();
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
}
}
},

23
src/modules/dropdown.js

@ -226,7 +226,7 @@ $.fn.dropdown = function(parameters) {
}
})
;
return $selectedItem;
return $selectedItem || false;
}
},
@ -243,16 +243,19 @@ $.fn.dropdown = function(parameters) {
var
selectedValue = value || $input.val(),
$selectedItem = module.get.item(value),
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text()
selectedText
;
module.debug('Setting selected menu item to', $selectedItem);
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
if($selectedItem) {
module.debug('Setting selected menu item to', $selectedItem);
selectedText = $selectedItem.data(metadata.text) || $selectedItem.text();
$item
.removeClass(className.active)
;
$selectedItem
.addClass(className.active)
;
module.set.text(selectedText);
}
}
},

Loading…
Cancel
Save