</form>
</div>
- <script type="text/javascript">
- jQuery(document).ready(function($) {
-
- // Filter triggers
- $(".listFilter" ).change( function() {
-
- var filter = '';
-
- // Check for archived filter
- if ($("#filterArchived").attr('checked')) {
- filter += '&filterArchived=true';
- }
-
- // Check for pending data filter
- if ($("#filterPending").attr('checked')) {
- filter += '&filterPending=true';
- }
-
- // Check for featured data filter
- if ($("#filterFeatured").attr('checked')) {
- filter += '&filterFeatured=true';
- }
-
- window.location.href = "{$thisUrl}?page={$thisPage}&glm_action=list" + filter;
-
- return false;
- });
-
-
-/******* THE REST OF THIS NEEDS TO BE REWRITTEN FOR THIS APPLICATION *********/
-
-
- /*
- *
- * Do autocomplete search for registration events
- * label: What will be searched
- * value: What will be displayed when selected
- * id: Member id added so we can go to the member while showing what was selected
- * Also note that autocomplete does not properly render HTML codes, so we
- * "unescape" them for HTML in Smarty.
- */
-/*
- var availableTags = [
- {foreach $namesList as $m}
- { label: "{$m.name|unescape:'html'|replace:'"':''}", value: "{$m.name|unescape:'html'|replace:'"':''}", id: '{$m.id}' },
- {/foreach}
- ];
-
- // Autocomplete for list Text Search
- $( ".glmMembersSearch" ).autocomplete({
-
- source: availableTags,
- html: true,
- position: { my : "right top", at: "right bottom" },
- select: function( event, ui ) {
- var memberID = ui.item.id;
- window.location.replace("{$adminUrl}?page=glm-members-admin-menu-member&glm_action=index&member=" + memberID );
- },
- response: function(event, ui) {
- if (!ui.content.length) {
- var noResult = { value:"",label:"No results found" };
- ui.content.push(noResult);
- }
- }
- });
-
- // Autocomplete for export Text field
- $( ".exportMembersSearch" ).autocomplete({
-
- source: availableTags,
- html: true,
- position: { my : "right top", at: "right bottom" },
- response: function(event, ui) {
- if (!ui.content.length) {
- var noResult = { value:"",label:"No results found" };
- ui.content.push(noResult);
- }
- }
- });
+<script type="text/javascript">
+ jQuery(document).ready(function($) {
+
+ // Filter triggers
+ $(".listFilter" ).change( function() {
+
+ var filter = '';
+
+ // Check for archived filter
+ if ($("#filterArchived").attr('checked')) {
+ filter += '&filterArchived=true';
+ }
- // Restrict autocomplete list to a certain height with scrollbar
- $('.ui-autocomplete').css('height','200px').css('overflow-y','scroll');
-
- // Expand multi-select on hover
- $('#filterCategories').multiselect();
- $('#exportFilterCategories').multiselect();
-*/
+ // Check for pending data filter
+ if ($("#filterPending").attr('checked')) {
+ filter += '&filterPending=true';
+ }
+ // Check for featured data filter
+ if ($("#filterFeatured").attr('checked')) {
+ filter += '&filterFeatured=true';
+ }
+
+ window.location.href = "{$thisUrl}?page={$thisPage}&glm_action=list" + filter;
+
+ return false;
});
- </script>
+
+ /*
+ *
+ * Do autocomplete search for registration events
+ * label: What will be searched
+ * value: What will be displayed when selected
+ * id: Member id added so we can go to the member while showing what was selected
+ * Also note that autocomplete does not properly render HTML codes, so we
+ * "unescape" them for HTML in Smarty.
+ */
+
+ var availableTags = [
+ {foreach $namesList as $m}
+ { label: "{$m.event_name|unescape:'html'|replace:'"':''}", value: "{$m.event_name|unescape:'html'|replace:'"':''}", id: '{$m.id}' },
+ {/foreach}
+ ];
+
+ // Autocomplete for list Text Search
+ $( ".glmRegEventsSearch" ).autocomplete({
+
+ source: availableTags,
+ html: true,
+ position: { my : "right top", at: "right bottom" },
+ select: function( event, ui ) {
+ var regEventID = ui.item.id;
+ window.location.replace("{$adminUrl}?page=glm-members-admin-menu-registrations-event®EventID=" + regEventID );
+ },
+ response: function(event, ui) {
+ if (!ui.content.length) {
+ var noResult = { value:"",label:"No results found" };
+ ui.content.push(noResult);
+ }
+ }
+ });
+
+ // Restrict autocomplete list to a certain height with scrollbar
+ $('.ui-autocomplete').css('height','200px').css('overflow-y','scroll');
+
+ // Expand multi-select on hover
+ $('#filterCategories').multiselect();
+ $('#exportFilterCategories').multiselect();
+
+ });
+</script>
{include file='admin/footer.html'}