Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
4.2
-
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);
})();