Commit 84f918b5 authored by PidgeyL's avatar PidgeyL
Browse files

javascript/jquery bugfix

parent 3bbea6d7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -145,7 +145,6 @@ def filterUpdateField(data):
    if not data: return data
    returnvalue = []
    for line in data.split("\n"):
        print(line)
        if (not line.startswith("[+]Success to create index") and
            not line == "Not modified" and
            not line.startswith("Starting")):
@@ -191,7 +190,6 @@ def filter_logic(f, limit, skip):
    
    # date logic
    if f['timeSelect'] != "all":
        print(f["timeSelect"])
        startDate = convertDateToDBFormat(f['startDate'])
        endDate = convertDateToDBFormat(f['endDate'])
        if f['timeSelect'] == "from":
+5 −8
Original line number Diff line number Diff line
@@ -12,9 +12,9 @@
      {% if settings is defined %}
        {% for key, val in settings.items() %}
          if($("#{{key}}").is(":checkbox")){
            if("{{val}}" == "on"){$("#{{key}}").prop('checked', true);}
            if("{{val}}" === "on"){$("#{{key}}").prop('checked', true);}
          }else{
            $("#{{key}}").value = "{{val}}";
            $("#{{key}}").val("{{val}}");
          }
        {% endfor %}
        cvssSelectDisable()
@@ -26,9 +26,6 @@
      form.action = url;
      form.submit();
    }
    function getr(){
      return {{r}};
    }
    function next(n){
      setSettings();
      var multiplier = {{r}} + ( n * {{ pageLength }});
@@ -52,7 +49,7 @@
  </button>
  
  <div id="filterdiv" class="collapse well well-small">  
    <form method="POST" id="filter" class="nav form-search" onsubmit="/filter">
    <form method="POST" id="filter" class="nav form-search">
      <table class="searchTable">
        <tr>
          <td class="text">BlackList</td>