#146462 by Gurpartap Singh: update jQuery to 1.1.2 and make the core JS files compatible with the new version
parent
5c09cfabb9
commit
0fe9be0b6e
|
@ -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
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -360,7 +360,6 @@ html.js fieldset.collapsible .fieldset-wrapper {
|
|||
html.js .resizable-textarea textarea {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue