Skip to content
  1. Jul 30, 2012
  2. Mar 13, 2012
  3. Feb 14, 2012
  4. Jan 29, 2012
  5. Feb 25, 2011
  6. Nov 20, 2010
  7. Nov 07, 2010
  8. Jun 13, 2010
  9. Apr 30, 2010
  10. Jan 29, 2010
  11. Sep 05, 2009
  12. Aug 31, 2009
    • Dries Buytaert's avatar
      - Patch #444344 by kkaefer, sun, Rob Loach: this change introduces a jQuery... · e6e29ac1
      Dries Buytaert authored
      - Patch #444344 by kkaefer, sun, Rob Loach: this change introduces a jQuery .once() method which streamlines the way behavior functions work. Previously, we had to manually ensure that an element is only initialized once. Usually, this happens by adding classes and selecting only those elements which do not have that class. However, this process can be separated out into a jQuery ‘filtering’ function which does all the grunt work.
      e6e29ac1
  13. Aug 17, 2009
  14. Jul 03, 2009
  15. Jun 28, 2009
  16. Apr 27, 2009
  17. Apr 26, 2009
  18. Mar 13, 2009
  19. Feb 18, 2009
  20. Oct 29, 2008
  21. Oct 12, 2008
  22. Jan 04, 2008
  23. Oct 21, 2007
  24. Sep 12, 2007
  25. Jul 01, 2007
  26. Jun 08, 2007
  27. Jun 01, 2007
  28. Jan 09, 2007
  29. Dec 30, 2006
  30. Dec 29, 2006
  31. Oct 14, 2006
  32. Aug 31, 2006
  33. May 20, 2006
  34. Apr 17, 2006
  35. Apr 06, 2006
  36. Apr 05, 2006
  37. Mar 26, 2006
  38. Jan 22, 2006
  39. Jan 16, 2006
  40. Aug 31, 2005
    • Dries Buytaert's avatar
      - Patch #28483 by Steven: JavaScript enabled uploading. · e03ce2f9
      Dries Buytaert authored
        Comment from Steven: It does this by redirecting the submission of the form to a hidden <iframe> when you click "Attach" (we cannot submit data through Ajax directly because you cannot read file contents from JS for security reasons).  Once the file is submitted, the upload-section of the form is updated.  Things to note:
      
          * The feature degrades back to the current behaviour without JS.
          * If there are errors with the uploaded file (disallowed type, too big, ...), they are displayed at the top of the file attachments fieldset.
          * Though the hidden-iframe method sounds dirty, it's quite compact and is 100% implemented in .js files. The drupal.js api makes it a snap to use.
          * I included some minor improvements to the Drupal JS API and code.
          * I added an API drupal_call_js() to bridge the PHP/JS gap: it takes a function name and arguments, and outputs a <script> tag. The kicker is that it preserves the structure and type of arguments, so e.g. PHP associative arrays end up as objects in JS.
          * I also included a progressbar widget that I wrote for drumm's ongoing update.php work. It includes Ajax status updating/monitoring, but it is only used as a pure throbber in this patch. But as the code was already written and is going to be used in the near future, I left that part in. It's pretty small ;). If PHP supports ad-hoc upload info in the future like Ruby on Rails, we can implement that in 5 minutes.
      e03ce2f9