facebook

Over-riding widget images: CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #340074 Reply

    RossL321
    Member

    Hi guys,
    I tried to override the on_off5.png image on the toggle widget by switching it’s background-image property using:
    $(‘#m1-Detail-tglStatus’).css(‘background-image’, ‘url(‘ + window.location.origin + ‘/Detail-www/res/images/active_offline5.png)’);
    This works fine on load after you have removed the original image from the directory, but doesn’t switch the image when you try to toggle it, because it seems there is a reference held somewhere internally.
    I have looked around and it seems there is a JSON file that references resources like images (and the cache manifest). But I can’t figure out where to go from here.
    Any help appreciated, but it’s not a big issue, just a nice to have.
    thanks
    Ross

    #340102

    Hi RossL321,

    Please try something like:
    $(“#m1-Detail-tglStatus input“).css(‘background-image’, ‘url(res/images/on_off5.png)’)

    We have tried and worked fine. Let us know how it goes.

    #340116

    RossL321
    Member

    Thanks Octavio. That was it. I had used the ‘input’ property everywhere else except for adding the background image. It now works great.
    Cheers, great job you guys do!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Over-riding widget images: CLOSED

You must be logged in to post in the forum log in