Skip to content

Commit

Permalink
Fixed search bar in responses page
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeshc committed Nov 17, 2014
1 parent 8ae4555 commit 9da046f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/responses.php
Expand Up @@ -335,7 +335,7 @@ function browse($iSurveyID)
// The column model must be built dynamically, since the columns will differ from survey to survey, depending on the questions.
$column_model = array();
// The first few colums are fixed.
$column_model[] = array('name' => 'actions', 'model_name' => 'Actions', 'index' => 'actions', 'sorttype' => 'string', 'sortable' => false, 'width' => '100', 'align' => 'left', 'editable' => false);
$column_model[] = array('name' => 'actions', 'model_name' => 'Actions', 'index' => 'actions', 'sorttype' => 'string', 'sortable' => false, 'width' => '100', 'align' => 'left', 'editable' => false, 'search' => false);

// All other columns are based on the questions.

Expand Down
6 changes: 3 additions & 3 deletions scripts/admin/listresponse.js
Expand Up @@ -220,18 +220,18 @@ $(document)
/* Trigger the inline search when the access list changes */
$('#gs_completed_select').change(
function() {
$("#gs_Completed").val(
$("#gs_completed").val(
$('#gs_completed_select').val());

var e = jQuery.Event("keydown");
$("#gs_Completed").trigger(e);
$("#gs_completed").trigger(e);
});

/* Change the text search above "Status" icons to a dropdown */
var parentDiv = $('#gs_completed').parent();
parentDiv.prepend($('#gs_completed_select'));
$('#gs_completed_select').css("display", "");
$('#gs_Completed').css("display", "none");
$('#gs_completed').css("display", "none");

/* Disable search on the action column */
var parentDiv = $('#gs_actions').parent();
Expand Down

0 comments on commit 9da046f

Please sign in to comment.