}
$return = array(
- 'searchData' => 'test' // Where our events list will go
+ 'searchData' => ['result 1','result 2','result 3','result 4','result 5'] // Where our events list will go
);
header('Content-type:application/json;charset=utf-8', true);
}
$locations = get_theme_mod( 'nav_menu_locations' );
-if(!empty($locations))
-{
+if(!empty($locations)){
$menu = get_term_by('name', $menuName, 'nav_menu');
$locations[$menuSlug] = $menu->term_id;
set_theme_mod('nav_menu_locations', $locations);
add_submenu_page(
$mainMenuSlug,
$this->config['terms']['term_admin_menu_members'].' Members',
- $this->config['terms']['term_admin_menu_newMembers'],
+ $this->config['terms']['term_admin_menu_members'],
'glm_members_member',
'glm-members-admin-menu-members',
function() {$this->controller('members', 'index');}
width: 100%;
height: 100vh;
}
+ .glm-list-result{
+ background-color: #FFFFFF;
+ padding: 5px;
+ border-bottom: 1px solid #DEE2E2;
+ }
</style>
<div class="glm-dashboard-background">
- test
+ <div id="glm-admin-member-list" class="row admin-member-list"></div>
</div>
<script>
jQuery(function($){
// fields : textSearchData.fields,
// where : textSearchData.where
}
-
+
$.ajax({
dataType: "json",
type : 'POST',
url: '{$ajaxUrl}',
data: data,
success: function(data) {
-
+ data.searchData.forEach( function(){
+ $("<div />", {
+ text : data.searchData,
+ class : "glm-list-result"
+ }).appendTo( $("#glm-admin-member-list")).delay(2000).addClass("test") ;
+ })
}
});
});