#146462 by Gurpartap Singh: update jQuery to 1.1.2 and make the core JS files compatible with the new version

6.x
Gábor Hojtsy 2007-06-04 10:36:42 +00:00
parent 5c09cfabb9
commit 0fe9be0b6e
4 changed files with 20 additions and 6 deletions

View File

@ -7,12 +7,18 @@ Drupal.toggleFieldset = function(fieldset) {
if ($(fieldset).is('.collapsed')) {
var content = $('> div', fieldset).hide();
$(fieldset).removeClass('collapsed');
content.slideDown(300,
function() {
content.slideDown( {
duration: 300,
complete: function() {
// Make sure we open to height auto
$(this).css('height', 'auto');
Drupal.collapseScrollIntoView(this.parentNode);
this.parentNode.animating = false;
},
step: function() {
// Scroll the fieldset into view
Drupal.collapseScrollIntoView(this.parentNode);
}
});
if (typeof(Drupal.textareaAttach) != 'undefined') {
// Initialize resizable textareas that are now revealed

11
misc/jquery.js vendored

File diff suppressed because one or more lines are too long

View File

@ -131,7 +131,7 @@ if (Drupal.jsEnabled) {
// Set background/foreground color
$(input).css({
backgroundColor: color,
color: farb.RGBToHSL(farb.unpack(color))[2] > 0.5 ? '#000' : '#fff'
'color': farb.RGBToHSL(farb.unpack(color))[2] > 0.5 ? '#000' : '#fff'
});
// Change input value
@ -244,4 +244,4 @@ if (Drupal.jsEnabled) {
// Render preview
preview();
});
}
}

View File

@ -360,7 +360,6 @@ html.js fieldset.collapsible .fieldset-wrapper {
html.js .resizable-textarea textarea {
margin-bottom: 0;
width: 100%;
display: block;
}
/*