set default option to All -refs #6312

1.9.x
Yoselyn Castillo 12 years ago
parent 2ae33c29e9
commit d91182784d
  1. 8
      main/admin/session_list.php

@ -74,11 +74,11 @@ $column_model = array(
array('name'=>'date_start', 'index'=>'s.date_start', 'width'=>'40', 'align'=>'left', 'search' => 'true'), array('name'=>'date_start', 'index'=>'s.date_start', 'width'=>'40', 'align'=>'left', 'search' => 'true'),
array('name'=>'date_end', 'index'=>'s.date_end', 'width'=>'40', 'align'=>'left', 'search' => 'true'), array('name'=>'date_end', 'index'=>'s.date_end', 'width'=>'40', 'align'=>'left', 'search' => 'true'),
array('name'=>'coach_name', 'index'=>'coach_name', 'width'=>'80', 'align'=>'left', 'search' => 'false'), array('name'=>'coach_name', 'index'=>'coach_name', 'width'=>'80', 'align'=>'left', 'search' => 'false'),
array('name'=>'status', 'index'=>'session_active','width'=>'40', 'align'=>'left', 'search' => 'true', 'stype'=>'select', array('name'=>'status', 'index'=>'session_active','width'=>'50', 'align'=>'left', 'search' => 'true', 'stype'=>'select',
//for the bottom bar //for the bottom bar
'searchoptions' => array( 'searchoptions' => array(
'defaultValue' => '1', 'defaultValue' => ':',
'value' => '1:'.get_lang('Active').';0:'.get_lang('Inactive') 'value' => ':'.get_lang('All').';1:'.get_lang('Active').';0:'.get_lang('Inactive')
), ),
//for the top bar //for the top bar
'editoptions' => array( 'editoptions' => array(
@ -113,7 +113,7 @@ function setSearchSelect(columnName) {
{ {
searchoptions: { searchoptions: {
dataInit:function(el) { dataInit:function(el) {
$("option[value='2']",el).attr("selected", "selected"); $("option[value='1']",el).attr("selected", "selected");
setTimeout(function() { setTimeout(function() {
$(el).trigger('change'); $(el).trigger('change');
}, 1000); }, 1000);

Loading…
Cancel
Save