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:
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'.
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'.
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
-
Inappropriate?Thanks for the input, Tim. Definitely helpful.
We're working on getting you technical help for your other questions. :)
-
Inappropriate?Thanks Tim!
Good catch on these items. Sometimes we move so quickly it's hard to look back to make sure things are still working properly.
I'll add these to my list.
I’m thankful
Loading Profile...



EMPLOYEE