You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2013/01/27 18:29:13 UTC
[jira] [Updated] (SLING-2715) Script List does not get populated in
Script Console plugin with newer WebConsole
[ https://issues.apache.org/jira/browse/SLING-2715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra updated SLING-2715:
-----------------------------------
Attachment: SLING-2715.patch
- var options = codeLang.attr('options');
+ var options = codeLang.prop ? codeLang.prop('options') : codeLang.attr('options');
Using the 'prop' method instead of 'attr'. Probably the behaviour of attr method changed with jQuery 1.6 [1]. As a bug fix we first use prop if present otherwise fallback to attr
[1] http://ejohn.org/blog/jquery-16-and-attr/
> Script List does not get populated in Script Console plugin with newer WebConsole
> ----------------------------------------------------------------------------------
>
> Key: SLING-2715
> URL: https://issues.apache.org/jira/browse/SLING-2715
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Chetan Mehrotra
> Attachments: SLING-2715.patch
>
>
> The Sling Script Console (SLING-2463) does not work with newer WebConsole which use jQuery 1.8.x. In newer WebConsole the Script drop down list does not get populated.
> In JS Console following error is shown
> TypeError: options is undefined
> [Break On This Error]
> options[options.length] = opt
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira