app/assets/javascripts/carnival/vizir_admin.js.erb in carnival-0.3.1 vs app/assets/javascripts/carnival/vizir_admin.js.erb in carnival-0.3.2

- old
+ new

@@ -49,14 +49,10 @@ console.warn('The funcion ' + functionName + ' was not implemented') } } Carnival.submitIndexForm = function(){ - $(".carnival-index-form form").submit(); -} - -Carnival.cleanIndexForm = function(){ $("#advanced_search_form input").each(function(){ var $input = $(this); var inputValue = $input.val(); // [Date Inputs] If has no integer, i.e an empty strings @@ -70,9 +66,11 @@ var inputValue = $(this).val(); if(inputValue == "-1") $(this).val(''); }); + var form = $('.carnival-index-form').find('form') + form.submit(); } Carnival.setIndexPageParam = function(name, value){ var form = $('.carnival-index-form').find('form') form.find('input[name='+name+']').val(value);