Esempio n. 1
0
        public void Refresh(bool useFilter, AdminMangaFilterJson filter)
        {
            AdminMangasGetRequest request = new AdminMangasGetRequest();
            if (!Script.IsNullOrUndefined(filter))
            {
                request.filter = filter;
            }

            Request.Send(request, GetRequestSuccess);
            jQuery.Select("#admin-mangas-tbody").Children().Remove();
            Template.Get("admin", "loading-trow", true).AppendTo(jQuery.Select("#admin-mangas-tbody"));
        }
Esempio n. 2
0
        private void SubmitForm(jQueryEvent e)
        {
            e.PreventDefault();
            Hide();
            AdminMangaFilterJson filter = new AdminMangaFilterJson();
            filter.collection = jQuery.Select("#admin-manga-filter-collection").GetValue();
            filter.tag = jQuery.Select("#admin-manga-filter-tag").GetValue();
            filter.author = jQuery.Select("#admin-manga-filter-author").GetValue();
            filter.type = int.Parse(jQuery.Select("#admin-manga-filter-type").GetValue(), 10);
            if (Number.IsNaN(filter.type))
            {
                filter.type = -1;
            }

            mangasModule.Refresh(true, filter);
        }