Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-82543

JavaScript Code with variable containing underscore does not work

    XMLWordPrintable

Details

    Description

      Issue Summary

      JavaScript Code with a variable containing an underscore does not work in

      • Page Template 
      • HTML macro
      • 3rd Party Plugin (Script Runner)

      Steps to Reproduce

      Sample code block: 

      $test
      $test_1
      
      <script type="text/javascript">
      $("input[name='variableValues.test']").change(function (){
      console.log($(this).val());
      $("form[name='templateForm']").find("input[name='title']").val($(this).val())})
      </script>

      Expected Results

      test_1 variable should receive an input

      Actual Results

      test_1 variable is not rendered correctly

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              6ce45665ee6c Anoop Singh
              2f0471d2a1a4 Suat Kandiş
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: