Ignore:
Timestamp:
May 26, 2010, 10:36:12 PM (14 years ago)
Author:
nikrou
Message:

Fix bug 1700 : allow color with or without #

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pwgCumulus/template/admin.tpl

    r5405 r6379  
    1010  .each(function() {
    1111      if ($(this).val() !== undefined) {
    12         $(this).css('background-color', '#'+$(this).val());
     12        if ($(this).val().indexOf('#',0)==-1) {
     13           $(this).css('background-color', '#'+$(this).val());
     14        } else {
     15           $(this).css('background-color', $(this).val());
     16        }
    1317      }
    1418    })
Note: See TracChangeset for help on using the changeset viewer.