Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Fixed javascript that was breaking the colorpicker. #4021

Merged
merged 1 commit into from
Feb 13, 2016

Conversation

9037568
Copy link
Contributor

@9037568 9037568 commented Feb 11, 2016

This fixes #3864.

The code was rendering this javascript, which breaks the statement because of the double quotes in the span:
<img src="/images/colorwheel.png" width="29" height="29" border="0"
onclick="OH.colorpicker.setup('Fireplace', 'Chris' Fireplace <span style="">Err', '#ffffff')" />

This patch changes the double quotes to escaped single quotes.

@teichsta
Copy link
Member

Thanks for this contribution @9037568! Could you please also contribute this fix to ESH? Will keep this PR open until the according change (please refer to this PR) has been merged. Thanks in advance …

@9037568
Copy link
Contributor Author

9037568 commented Feb 12, 2016

Created new PR in ESH (#1024).

@teichsta
Copy link
Member

great, thanks @9037568!

teichsta added a commit that referenced this pull request Feb 13, 2016
Fixed javascript that was breaking the colorpicker.
@teichsta teichsta merged commit 440ae36 into openhab:master Feb 13, 2016
@teichsta
Copy link
Member

Thanks a lot @9037568 for going through the formalities!!

Also cherry-picked into 1.8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[%s] in description breaks Colorpicker
2 participants