summaryrefslogtreecommitdiff
path: root/ishtar_common/static/js/ishtar.js
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/static/js/ishtar.js')
-rw-r--r--ishtar_common/static/js/ishtar.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js
index 9cc9d3df9..184b1eff7 100644
--- a/ishtar_common/static/js/ishtar.js
+++ b/ishtar_common/static/js/ishtar.js
@@ -705,8 +705,16 @@ function clear_search_field(){
function _clear_search_criteria_fields(query){
var datatables_length = $(".dataTables_length select").val();
document.getElementById('wizard-form').reset();
- // some input seems to be not cleared...
- $('#wizard-form input').each(function(){$(this).val("")});
+ // hidden input are not cleared
+ $('#wizard-form input').each(
+ function(){
+ if($(this).attr("name") != 'csrfmiddlewaretoken'){
+ $(this).val("")
+ } else {
+ console.log('test');
+ }
+ }
+ );
$(".dataTables_length select").val(datatables_length);
$('.dataTables_length select option[value="' + datatables_length + '"]'
).prop('selected', true);