mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Add same color in pad and chat for author
This commit is contained in:
parent
433421cc91
commit
38b14c40f0
2 changed files with 12 additions and 3 deletions
|
@ -20,12 +20,13 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
function makeCSSManager(emptyStylesheetTitle)
|
||||
function makeCSSManager(emptyStylesheetTitle, parentCss)
|
||||
{
|
||||
|
||||
function getSheetByTitle(title)
|
||||
{
|
||||
var allSheets = document.styleSheets;
|
||||
if (parentCss) var allSheets = window.parent.parent.document.styleSheets;
|
||||
else var allSheets = document.styleSheets;
|
||||
|
||||
for (var i = 0; i < allSheets.length; i++)
|
||||
{
|
||||
|
@ -38,7 +39,7 @@ function makeCSSManager(emptyStylesheetTitle)
|
|||
return null;
|
||||
}
|
||||
|
||||
var browserSheet = getSheetByTitle(emptyStylesheetTitle);
|
||||
var browserSheet = getSheetByTitle(emptyStylesheetTitle, parentCss);
|
||||
|
||||
function browserRules()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue