Community Forums

Change row background color when hover in admin

Enter all OpenCart 1.x feature requests here. One idea per topic. Please search the forum to see if your feature has already been requested

Change row background color when hover in admin

Postby iDesigner » Mon Sep 12, 2011 8:50 am

Hello,

In admin, all data is presented in tables. I believe that it would be nice to change the background color of the row when you hover over it.

I add this code to the admin header:

Code: Select all
    $(function() {
        $('tr').hover(function() {
            $(this).find('td').css('background-color', '#f0f0f0');
        },
        function() {
            $(this).find('td').css('background-color', '#FFFFFF');
            $(this).contents('td').css('border', '1px solid #DDDDDD');
        });
    });
iDesigner
 
Posts: 4
Joined: Mon Sep 12, 2011 8:46 am

Re: Change row background color when hover in admin

Postby neopet001 » Sat Apr 28, 2012 2:43 am

THank you this helps me alot
neopet001
 
Posts: 6
Joined: Thu Nov 24, 2011 3:56 pm

Re: Change row background color when hover in admin

Postby kidsclubhouse » Fri May 11, 2012 9:38 am

Hi there,
I'm completely new to this kind of thing, what file did you add this too?
Thanks
User avatar
kidsclubhouse
 
Posts: 6
Joined: Tue Dec 13, 2011 7:45 pm
Location: Auckland, New Zealand

Re: Change row background color when hover in admin

Postby jason3w » Fri Jun 15, 2012 4:51 am

LEGEND!!
jason3w
 
Posts: 8
Joined: Mon Jun 11, 2012 8:36 am

Re: Change row background color when hover in admin

Postby jason3w » Fri Jun 15, 2012 4:52 am

oh and kidsclubhouse,
the file is at
\admin\view\template\common\header.tpl
jason3w
 
Posts: 8
Joined: Mon Jun 11, 2012 8:36 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 6 guests

Hosted by Arvixe Web Hosting