1. 14 Apr, 2016 2 commits
  2. 30 Mar, 2016 1 commit
    • Damyon Wiese's avatar
      MDL-53056 javascript: Improve the fragments API · 1fca8a7b
      Damyon Wiese authored
      Instead of injecting the HTML + JS directly - return a promise that is resolve with
      the HTML and JS. This gives the caller control over how and when to inject the nodes
      in the DOM. Also modify templates.replaceNode functions to cleanup YUI events mess.
      Also pass the context to the callback so it can be verified.
      Also pass the arguments to the callback as a named array - not a flat argument list.
      Also - only load external scripts if they are not already loaded.
      1fca8a7b
  3. 29 Feb, 2016 1 commit
  4. 27 Feb, 2016 2 commits
  5. 13 Feb, 2016 1 commit
  6. 03 Feb, 2016 1 commit
  7. 01 Feb, 2016 2 commits
  8. 14 Sep, 2015 1 commit
    • Damyon Wiese's avatar
      MDL-50783 Ajax: Configure how to call a webservice through db/service.php · ba224fb4
      Damyon Wiese authored
      Now the db/service.php array can contain these extra keys to provide information
      on how a webservice may be called:
      
          'ajax' => true (Default is false)
      
      Replaces the xx_is_allowed_from_ajax callback.
      
          'loginrequired' => false (Default is true)
      
      Means that this webservice can be called through lib/ajax/service-nosession.php
      which sets NO_MOODLE_COOKIES to true (faster). This is only safe for webservices returning
      static public data (e.g. get_string).
      ba224fb4
  9. 12 Mar, 2015 1 commit
    • Damyon Wiese's avatar
      MDL-49163 Webservices, AJAX: Add support for a new ajax webservice handler. · 72f8324e
      Damyon Wiese authored
      This is a new script that can call any function in the built-in AJAX webservice. This is
      a new system service that is added at install time (like the mobile webservice). It has no
      protocols added to it, but it accessible by a new ajax script /lib/ajax/service.php.
      
      Requests and responses to the script are required to be in json format, and multiple functions can
      be called in a single request.
      72f8324e
  10. 24 Feb, 2015 1 commit
  11. 20 May, 2014 1 commit
  12. 08 Jan, 2013 1 commit
  13. 31 Oct, 2012 1 commit