Skip to content

Commit

Permalink
fix IE/jQuery problem with menu display
Browse files Browse the repository at this point in the history
jQuery seems to set style="display:inline-block" when doing slideDown() in IE.
This breaks the arrangement of our <select>s.
Disable the animation for IE.
  • Loading branch information
ssp committed Aug 6, 2012
1 parent 8f1fd6f commit 2b5e458
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2012-08-06 2.1.1 Sven-S. Porst <porst@sub.uni-goettingen.de>
* Fix jQuery vs IE problem with animations in menu display style

2012-07-27 2.1.0 Sven-S. Porst <porst@sub.uni-goettingen.de>
* Change field names in Tev records according to the GND format
* Add ability to start the tree with more than one element at the root level
Expand Down
8 changes: 6 additions & 2 deletions lib/class.tx_nkwgok_menu.php
Expand Up @@ -150,9 +150,13 @@ function newMenuForSelection" . $this->objectID . " (option) {
var newSelect = document.createElement('select');
var jNewSelect = jQuery(newSelect);
newSelect.setAttribute('level', level);
jNewSelect.hide();
if (!jQuery.browser.msie) {
jNewSelect.hide();
}
option.form.appendChild(newSelect);
jNewSelect.slideDown('fast');
if (!jQuery.browser.msie) {
jNewSelect.slideDown('fast');
}
var loadingOption = document.createElement('option');
newSelect.appendChild(loadingOption);
loadingOption.appendChild(document.createTextNode('" . $this->localise('Laden ...') . "'));
Expand Down

0 comments on commit 2b5e458

Please sign in to comment.