diff --git a/application/views/admin/survey/listSurveys_view.php b/application/views/admin/survey/listSurveys_view.php index c2d6fd10284..5a54e5accac 100644 --- a/application/views/admin/survey/listSurveys_view.php +++ b/application/views/admin/survey/listSurveys_view.php @@ -24,4 +24,15 @@
+ +
diff --git a/scripts/admin/listsurvey.js b/scripts/admin/listsurvey.js index 5d75659841c..c2fe212a73e 100644 --- a/scripts/admin/listsurvey.js +++ b/scripts/admin/listsurvey.js @@ -148,4 +148,28 @@ $(document).ready(function(){ $('.wrapper').width($('#displaysurveys').width()*1.006); $('.footer').width(($('#displaysurveys').width()*1.006)-10); + /* Trigger the inline search when the status list changes */ + $('#gs_status_select').change(function() { + $("#gs_status").val($('#gs_status_select').val()); + var e = jQuery.Event("keydown"); + $("#gs_status").trigger(e); + }); + /* Trigger the inline search when the access list changes */ + $('#gs_access_select').change(function() { + $("#gs_access").val($('#gs_access_select').val()); + var e = jQuery.Event("keydown"); + $("#gs_access").trigger(e); + }); + /* Change the text search above "Status" icons to a dropdown */ + var parentDiv=$('#gs_status').parent(); + parentDiv.prepend($('#gs_status_select')); + $('#gs_status_select').css("display", ""); + $('#gs_status').css("display", "none"); + /* Change the text search above "Access" to a dropdown */ + var parentADiv=$('#gs_access').parent(); + parentADiv.prepend($('#gs_access_select')); + $('#gs_access_select').css("display", ""); + $('#gs_access').css("display", "none"); + + });