From: Alexandra Yates <alexandra.yates at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [Announce] v2.5-rc1
Date: Wed, 23 Oct 2013 11:32:12 -0700 [thread overview]
Message-ID: <54661.10.24.1.152.1382553132.squirrel@linux.intel.com> (raw)
In-Reply-To: 20131023180039.GC2474@swordfish.minsk.epam.com
[-- Attachment #1: Type: text/plain, Size: 1945 bytes --]
> On (10/23/13 09:12), Alexandra Yates wrote:
>> >>
>> >> This change enables the menu links and mouse over, but the font and
>> the
>> >> button background are all black, I don't think the css are working
>> here.
>> >> I will send you the image to your email that way you get to see it.
>> >>
>> >
>> > thanks. well, that's weird. I found rdesktop-ed win box around and
>> tested
>> > generated report on IE (don't know the version - 8 or 9). what IE
>> version
>> > is on the picture?
>> >
>>
>> You are welcome, what version of IE are you running?
>>
>
> ok. this is really the last one :)
>
> I think I found the issue -- textContent support in IE.
>
>
> ---
> src/powertop.css | 19 ++++++++++++++-----
> 1 file changed, 14 insertions(+), 5 deletions(-)
>
> diff --git a/src/powertop.css b/src/powertop.css
> index 6d43e07..ce7dbb2 100644
> --- a/src/powertop.css
> +++ b/src/powertop.css
> @@ -17,20 +17,29 @@ var powertop = {
> },
> cadd: function(idx, c){
> var el = document.getElementById(idx);
> - if (el)
> - el.classList.add(c);
> -
> + if (el) {
> + var cn = el.className;
> + if (cn.indexOf(c) != -1)
> + return;
> + cn += ' ' + c;
> + el.className = cn;
> + }
> },
> crm: function(id, c){
> var el = document.getElementById(id);
> - if (el)
> - el.classList.remove(c);
> + if (el) {
> + var cn = el.className
> + while (cn.indexOf(' ' + c) != -1)
> + cn = cn.replace(' ' + c,'');
> + el.className = cn;
> + }
> },
> newbutton: function(id, txt) {
> var x = document.createElement('div');
> x.id = id + '_button';
> x.className = 'nav_button';
> x.textContent = txt;
> + x.innerText = txt;
> x.onclick = function() { powertop.toggle(id); };
> return x;
> },
>
>
YES! that fixes the menu! It works in IE, FF, Chrome :)
Thank you,
Alexandra.
next reply other threads:[~2013-10-23 18:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 18:32 Alexandra Yates [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-11-27 7:46 [Powertop] [Announce] v2.5-rc1 Sergey Senozhatsky
2013-11-26 21:58 Marc MERLIN
2013-11-26 19:36 Sergey Senozhatsky
2013-11-02 16:09 Marc MERLIN
2013-10-23 19:06 Sergey Senozhatsky
2013-10-23 18:00 Sergey Senozhatsky
2013-10-23 16:58 Sergey Senozhatsky
2013-10-23 16:31 Sergey Senozhatsky
2013-10-23 16:12 Alexandra Yates
2013-10-22 21:44 Sergey Senozhatsky
2013-10-22 18:05 Alexandra Yates
2013-10-22 8:56 Sergey Senozhatsky
2013-10-22 8:16 Sergey Senozhatsky
2013-10-21 17:21 Yates, Alexandra
2013-10-19 7:00 Sergey Senozhatsky
2013-10-19 5:17 Daniel Kahn Gillmor
2013-10-18 22:33 Yates, Alexandra
2013-10-18 18:09 Kristen Carlson Accardi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54661.10.24.1.152.1382553132.squirrel@linux.intel.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.