Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/filterhits/static/query.js

Issue 29344572: Noissue - Removed obsolete sitescripts.filterhits package (Closed)
Patch Set: Created May 26, 2016, 12:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sitescripts/filterhits/static/query.html ('k') | sitescripts/filterhits/test/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/filterhits/static/query.js
===================================================================
deleted file mode 100644
--- a/sitescripts/filterhits/static/query.js
+++ /dev/null
@@ -1,39 +0,0 @@
-(function () {
- var table = $("#results").dataTable({
- serverSide: true,
- bFilter: false,
- "columns": [
- { data: "filter" },
- { data: "domain" },
- { data: "frequency" }
- ],
- order: [[2, "desc"]],
- fnServerData: function (source, data, callback, settings) {
- var sort = settings.aaSorting[0];
- $.ajax({
- dataType: "json",
- type: "GET",
- url: "/query",
- data: {
- echo: settings.iDraw,
- skip: settings._iDisplayStart,
- take: settings._iDisplayLength,
- filter: $("#filter").val(),
- domain: $("#domain").val(),
- order: sort[1],
- order_by: ["filter", "domain", "frequency"][sort[0]]
- },
- success: function(data, status, jqxhr) {
- callback({
- draw: data.echo,
- recordsTotal: data.total,
- recordsFiltered: data.total,
- data: data.results
- }, status, jqxhr);
- }
- });
- }
- });
-
- $("#filter, #domain").on("input", function () { table.fnDraw(); });
-}());
« no previous file with comments | « sitescripts/filterhits/static/query.html ('k') | sitescripts/filterhits/test/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld