Get your own customer support community
 

Tiny widget fixes (color code javascript + page widget caption)

Hello GS,

I was just messing about with the Feedback Tab Widget creation thingy, and I noticed my background color didn't show up! A peek at the source revealed that I forgot to put the '#' in front of the hex color code. Assuming I'm not the only one to make those tiny mistakes, a simple addition to the javascript that's executed when clicking 'Update your code' should fix this. Basically the only thing you need is a simple regex:
if (tab_color.match(/^(?:[a-f0-9]{3}){1,2}$/i)) {
tab_color = '#'+tab_color;
}


And while clicking around, I noticed another tiny thing: in the customization options of the Feedback Page Widget, the caption says "Customize your tab", instead of 'page' or perhaps 'widget'.
 
happy I’m just trying to help :-)
Inappropriate?
1 person likes this idea

User_default_medium