Commit 0fe9be0b authored by Gábor Hojtsy's avatar Gábor Hojtsy

#146462 by Gurpartap Singh: update jQuery to 1.1.2 and make the core JS files...

#146462 by Gurpartap Singh: update jQuery to 1.1.2 and make the core JS files compatible with the new version
parent 5c09cfab
......@@ -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
......
This diff is collapsed.
......@@ -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();
});
}
\ No newline at end of file
}
......@@ -360,7 +360,6 @@ html.js fieldset.collapsible .fieldset-wrapper {
html.js .resizable-textarea textarea {
margin-bottom: 0;
width: 100%;
display: block;
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment