| 3 |
|
|
| 4 |
//Faster alternative to resizable textareas. |
//Faster alternative to resizable textareas. |
| 5 |
//Make textareas full expand/shrink on dblclick to grippie |
//Make textareas full expand/shrink on dblclick to grippie |
| 6 |
|
//runs async to cause no lag |
| 7 |
Drupal.behaviors.textarea = function(context) { |
Drupal.behaviors.textarea = function(context) { |
| 8 |
$('textarea.resizable:not(.textarea-processed)', context).each(textArea); |
setTimeout(function() {$('textarea.resizable:not(.textarea-processed)', context).each(textArea)}); |
| 9 |
}; |
}; |
| 10 |
|
|
| 11 |
//Faster alternative to sticky headers. |
//Faster alternative to sticky headers. |
| 65 |
var createHeader = function(table) { |
var createHeader = function(table) { |
| 66 |
var $fixed = table.$fixed = $(table.cloneNode(false)); |
var $fixed = table.$fixed = $(table.cloneNode(false)); |
| 67 |
var $repo = table.$repo = $(El('table')).append(table.tHead.cloneNode(true)); |
var $repo = table.$repo = $(El('table')).append(table.tHead.cloneNode(true)); |
| 68 |
$repo.css({visibility: 'hidden', position: 'absolute', left: -1000, top: -1000}).insertBefore(table); |
$repo.css({visibility: 'hidden', position: 'absolute', left: '-999em', top: '-999em'}).insertBefore(table); |
| 69 |
$fixed.addClass('sticky-header').css('position', 'fixed')[0].id += '-fixed'; |
$fixed.addClass('sticky-header').css('position', 'fixed')[0].id += '-fixed'; |
| 70 |
return $fixed.insertBefore(table); |
return $fixed.insertBefore(table); |
| 71 |
}; |
}; |
| 250 |
bue.IP = bue.BP + Drupal.settings.BUE.iconpath +'/'; |
bue.IP = bue.BP + Drupal.settings.BUE.iconpath +'/'; |
| 251 |
bue.$div = $(El('div')); |
bue.$div = $(El('div')); |
| 252 |
bue.sop = $html('<img class="icon-selector-opener" src="'+ bue.BP +'misc/menu-expanded.png" title="'+ Drupal.t('Select an icon') +'" />')[0]; |
bue.sop = $html('<img class="icon-selector-opener" src="'+ bue.BP +'misc/menu-expanded.png" title="'+ Drupal.t('Select an icon') +'" />')[0]; |
| 253 |
bue.IS = createIS(); //create icon selector |
//async safe modifications |
| 254 |
$('input.input-icon').each(iconProc);//process icon textfields |
setTimeout(function() { |
| 255 |
selAction();//selected buttons actions |
bue.IS = createIS(); //create icon selector |
| 256 |
tableDrag();//alter table drag |
$('input.input-icon').each(iconProc);//process icon textfields |
| 257 |
|
selAction();//selected buttons actions |
| 258 |
|
tableDrag();//alter table drag |
| 259 |
|
}); |
| 260 |
}; |
}; |
| 261 |
|
|
| 262 |
//local container |
//local container |