Timestamp: 30/01/2013 14:37:35
Error: TypeError: doc.defaultView is null
Source File: chrome://browserrecord/content/browserrecordloader.js
Line: 645
Here is my controller method for this section:
function pages()
{
$crud = new grocery_CRUD();
$crud->set_table( $this->router->method )
->set_subject( 'page' )
->columns('name','uri_name','description','date_post','author','row_num','sub_links','url','tags','slider') //Columns on display.
->display_as('uri_name','Name to match against')
->display_as('description','Description')
->display_as('tags','Search Keywords')
->display_as('row_num','Box Colour / Group')
->display_as('url','Complete url (for links)')
->display_as('slider','Add Slider?');
//Add / Edit methods.
$crud->fields('name','uri_name','url','description','date_post','author','row_num','sub_links','tags','slider'); //Fields to display for add / edit.
//Hidden auto-filled fields.
$crud->change_field_type('date_post', 'datetime', date('d-m-Y h:i:s',time()) );
$crud->change_field_type('author', 'hidden', $this->session->userdata('userId') );
$uri_name = isset($_POST['uri_name']) ? $_POST['uri_name'] : '';
$url = $this->options->company->groc_images_path.'/'.$uri_name;
//$crud->change_field_type('url', 'hidden', $url); //Process this using a callback to autofill below.
//Drop down menus. Selects some info from a database table and uses it to populate the drop down menu.
$crud->set_relation('sub_links', 'gc_bool', 'name');
$crud->set_relation('slider', 'gc_bool', 'name');
$crud->set_relation('row_num', 'gc_rows', 'name');
$crud->set_relation('author', 'users', 'userName');
$crud->required_fields('name','uri_name','description','date_post','author','row_num','sub_links'); //Required fields / form validation.
$output = $crud->render();//Set output variable for view.
$output->css_files[] = base_url().'css/grocery_crud.css';
//$this->_example_output($output);//Send to view.
$this->_example_output($output);
}