Uploaded image for project: 'FullCalendar Macro'
  1. FullCalendar Macro
  2. FULLCAL-20

Avoid warnings from javascript minimizer

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 2.0
    • None
    • None

    Description

      Wen using the calendar macro, fetching the javascript files causes warnings in the log:

      2014-12-27 19:24:36,275 [http://localhost:8080/xwiki/bin/jsx/Calendar/FullCalendar?language=en&defer=false] WARN  c.x.x.w.s.JsExtension          - Error at line 8, column 5,346: syntax error. Caused by: [.... logn 
      

      The messages are created by the minimizer.
      As the file are already minimized, it is not necessary to minimize them again, so including them via

      #set($discard = $xwiki.jsx.use("Calendar.JQuery", {'defer': false, 'minify': false}))
      #set($discard = $xwiki.jsx.use("Calendar.JQueryUI", {'defer': false, 'minify': false}))
      [...]
      #set($discard = $xwiki.jsx.use("Calendar.FullCalendar", {'defer': false, 'minify': false}))
      

      should be ok.

      It seems that Moment does not cause sch problems, but as it is already minimized, maybe

      Attachments

        Activity

          People

            vrachieru Victor Rachieru
            camil7 Clemens Robbenhaar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: