summaryrefslogtreecommitdiff
path: root/misc/teaser.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/teaser.js')
-rw-r--r--misc/teaser.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/misc/teaser.js b/misc/teaser.js
index af50803d4..c7cdf5654 100644
--- a/misc/teaser.js
+++ b/misc/teaser.js
@@ -8,11 +8,6 @@
*/
Drupal.behaviors.teaser = {
attach: function(context) {
- // This breaks in Konqueror. Prevent it from running.
- if (/KDE/.test(navigator.vendor)) {
- return;
- }
-
$('textarea.teaser:not(.teaser-processed)', context).each(function() {
var teaser = $(this).addClass('teaser-processed');
@@ -90,8 +85,8 @@ Drupal.behaviors.teaser = {
Drupal.behaviors.textarea.attach(teaser.parentNode);
}
// Set initial visibility.
- if ($(teaser).is('[@disabled]')) {
- $(teaser).parent().hide();
+ if (teaser[0].disabled) {
+ teaser.parent().hide();
}
});