Changeset 1144

Show
Ignore:
Timestamp:
06/19/08 16:36:08 (3 months ago)
Author:
_ck_
Message:

0.0.2 fix for themes with multiple stylesheets

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bbcode-buttons/trunk/BBcode-buttons.js

    r1143 r1144  
    1212 
    1313var CSS='float:left; border: 1px outset; color: black; background: buttonface; padding: 0px 6px 1px 6px; margin: 1px 7px 2px 0;' 
    14         +'font: 1.2em times, serif; word-spacing: -1px; height: 16px; vertical-align:middle;
     14        +'font: 1.2em times, serif; word-spacing: -1px; height: 16px; vertical-align:middle; line-height:16px;
    1515        +'text-align:center; position:relative; cursor: pointer; cursor: hand;'; 
    16 var stylesheet = document.styleSheets[0]; 
     16var stylesheet = document.styleSheets[document.styleSheets.length-1]; 
    1717if (stylesheet.addRule) {stylesheet.addRule(".ed_button", CSS);} else {if (stylesheet.insertRule) {stylesheet.insertRule(".ed_button {"+CSS+"}",stylesheet);}} 
    1818 
  • bbcode-buttons/trunk/BBcode-buttons.php

    r1143 r1144  
    66Author: _ck_ 
    77Author URI: http://bbShowcase.org 
    8 Version: 0.0.1 
     8Version: 0.0.2 
    99 
    1010License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ 
     
    3333        BBcodeButtons.push(new BBcodeButton('ed_close','close','','','c',' ','auto-close any tags you left open')); 
    3434        }</scr"."ipt> 
    35         <scr"."ipt src='" .bb_get_option('uri').str_replace(array(".php",BBPATH),array(".js",""),__FILE__)."' type='text/javascript' defer='defer'></scr"."ipt>"; 
     35        <scr"."ipt src='" .bb_get_option('uri').str_replace(array(".php",BBPATH),array(".js",""),__FILE__)."?0.0.2' type='text/javascript' defer='defer'></scr"."ipt>"; 
    3636}        
    3737} add_action('bb_foot', 'bbcode_buttons');