testing out an array of static data to test fetching via ajax and appending to a row
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 25 Oct 2018 12:36:47 +0000 (08:36 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 25 Oct 2018 12:36:47 +0000 (08:36 -0400)
views/admin/manageMembers/manage.html

index 1aaca43..3aa9db1 100644 (file)
@@ -31,9 +31,9 @@
                 url: '{$ajaxUrl}',
                 data: data,
                 success: function(data) {
-                    data.searchData.forEach( function(){
+                    data.searchData.forEach( function(index, value){
                         $("<div />", {
-                            text    : data.searchData,
+                            text    : value,
                             class   : "glm-list-result"
                         }).appendTo( $("#glm-admin-member-list")).delay(2000).addClass("test") ;
                     })