]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Removed braces from $.ajax call example 7878/head
authorAlessandro Rosa <fluxdot@gmail.com>
Thu, 14 Jan 2016 13:58:25 +0000 (14:58 +0100)
committerAlessandro Rosa <fluxdot@gmail.com>
Thu, 14 Jan 2016 13:58:25 +0000 (14:58 +0100)
jQuery wants an url string or/plus a config object with a set of key/value pairs

docs/pages/reveal.md

index 2f06ba6a957696151f3578d1fdee901d1847c9a4..2e464d14801f8cb7e3a9317e9394da24a8883115 100644 (file)
@@ -182,7 +182,7 @@ To use AJAX to load your modal content, use the code snippet below.
 ```js
 var $modal = $('#modal');
 
-$.ajax({'/url'})
+$.ajax('/url')
   .done(function(resp){
     $modal.html(resp.html).foundation('open');
 });