Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8114

The selected date is not inserted in the input field.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 4.2
    • App Within Minutes
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      • Create a document to display simple input for the date picker
      #set($discard = $xwiki.ssx.use("AppWithinMinutes.Date"))
      #set($discard = $xwiki.jsx.use("AppWithinMinutes.Date"))
      {{html wiki="true" clean="false"}}
      <div id="endDateContainer">
        <input type="text" placeholder="this date" name="enddate" id="endDateValue" class="datePickerClass datetime" />
      </div>
      
      • Create a JSX with 'Always on this page' for the created document.
      (function() {
      var init = function() {
        // This is required only in view mode. In edit mode it is done automatically by AppWithinMinutes.Date JSX.
        $$('input.datetime').each(function(dateTimeInput) {
          new XWiki.DateTimePicker(dateTimeInput, dateTimeInput.title);
        });
        return true;
      }
      
      (XWiki.domIsLoaded && init()) || document.observe('xwiki:dom:loaded', init);
      })();
      

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            md.staicu Mircea Dragomir Staicu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: