Uploaded image for project: 'Click'
  1. Click
  2. CLK-366

DateField in TabbedPanel causes JS warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5 M1
    • 1.5 M2
    • extras
    • None
    • 1.5 M1

    Description

      A DateField in a TabbedPanel may not be displayed if its not the active panel. However it will be included in the $jsImports which will cause a JS initialization error which will result in a Calender Alert message being displayed.

      There are a number of potential fixes for this:
      1 - remove Alert from Calendar.js, this is the quick and dirty solution, which leaves used JS code and imports in the page
      2 - inline the JS initialization code in the page HTML for the DateField, has some performance issues with page rendering
      3 - improve the logic for including JS, enabling the parent control/container to decide what is included.

      Attachments

        Activity

          People

            medgar Malcolm Edgar
            medgar Malcolm Edgar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: