/[drupal]/contributions/modules/bueditor/admin/bueditor.edit.js
ViewVC logotype

Diff of /contributions/modules/bueditor/admin/bueditor.edit.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5.2.4, Fri Nov 6 15:48:23 2009 UTC revision 1.5.2.5, Mon Nov 9 22:07:08 2009 UTC
# Line 3  Line 3 
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.
# Line 64  var TShrink = function(e) { Line 65  var TShrink = function(e) {
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  };  };
# Line 249  var init = function() { Line 250  var init = function() {
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

Legend:
Removed from v.1.5.2.4  
changed lines
  Added in v.1.5.2.5

  ViewVC Help
Powered by ViewVC 1.1.2