Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12619

Javascript namespaces should be reviewed in Nuxeo Platform UI

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8
    • Fix Version/s: 5.9.1
    • Component/s: Seam / JSF UI

      Description

      Cleanup use of nuxeo object / namespace in JavaScript.
      The future nuxeo.js JavaScript client will put its functions inside the global nuxeo object, we need to do some cleanup inside Nuxeo as some module completely override the nuxeo object (nuxeo-opensocial for instance).

      Correctly wrap new 5.7 stuff (safe edit, double click shield, ...) to avoid putting things in the global JS namespace. We should put them in their own object / namespace inside the nuxeo object:

      • nuxeo.safeEdit

      Goal : future nuxeo.js should be usable with a 5.8

      • nuxeo.doubleClickShield
      • nuxeo.XXXXX

      Wrap safe edit as jQuery plugin.

      Rename our own jQuery plugins to jquery.nuxeo.XXXX.js (for opensocial, double click shield, safe edit)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: