Commit 42dc56b7 authored by Nigel McNie's avatar Nigel McNie
Browse files

IE7 fixes, especially in the Resume.

* The fieldsets are not collapsible in IE7 any more. I've narrowed down the problem to an IE7 issue with running javascript that has been inserted via innerHTML. It's going to be too much work to make pieforms work around it for now, so sorry IE - you lose.
* IE doesn't seem to understand the meaning of 'float', so make a table have auto width instead of 95% so that a float doesn't affect the position of the table.
parent 0d0bf422
......@@ -35,6 +35,10 @@ define('TITLE', get_string('myresume', 'artefact.resume'));
require_once('pieforms/pieform.php');
require_once(get_config('docroot') . 'artefact/lib.php');
// There is a problem with collapsible fieldsets in pieforms that mean they
// don't work properly in IE. This is a hack until that problem is fixed
$collapsedfieldsets = (isset($_SERVER['HTTP_USER_AGENT']) && false === stripos($_SERVER['HTTP_USER_AGENT'], 'msie'));
// load up all the artefacts this user already has....
$coverletter = null;
$personalinformation = null;
......@@ -73,8 +77,8 @@ $coverletterform = pieform(array(
'coverletterfs' => array(
'type' => 'fieldset',
'legend' => get_string('coverletter', 'artefact.resume'),
'collapsible' => true,
'collapsed' => true,
'collapsible' => $collapsedfieldsets,
'collapsed' => $collapsedfieldsets,
'elements' => array(
'coverletter' => array(
'type' => 'wysiwyg',
......@@ -103,8 +107,8 @@ $interestsform = pieform(array(
'interestsfs' => array(
'type' => 'fieldset',
'legend' => get_string('interest', 'artefact.resume'),
'collapsible' => true,
'collapsed' => true,
'collapsible' => $collapsedfieldsets,
'collapsed' => $collapsedfieldsets,
'elements' => array(
'interest' => array(
'type' => 'wysiwyg',
......@@ -133,8 +137,8 @@ $contactinformationform = pieform(array(
'contactinformationfs' => array(
'type' => 'fieldset',
'legend' => get_string('contactinformation', 'artefact.resume'),
'collapsible' => true,
'collapsed' => true,
'collapsible' => $collapsedfieldsets,
'collapsed' => $collapsedfieldsets,
'elements' => array(
'contactinformation' => array(
'type' => 'html',
......@@ -157,8 +161,8 @@ $personalinformationform = pieform(array(
'personalinformation' => array(
'type' => 'fieldset',
'legend' => get_string('personalinformation', 'artefact.resume'),
'collapsible' => true,
'collapsed' => true,
'collapsible' => $collapsedfieldsets,
'collapsed' => $collapsedfieldsets,
'elements' => array(
'dateofbirth' => array(
'type' => 'calendar',
......
......@@ -1128,6 +1128,14 @@ fieldset.collapsed legend a {
background: url(../images/icon_fieldset_left.gif) 2px center no-repeat;
}
#coverletter fieldset,
#interests fieldset,
#contactinformation fieldset,
#personalinformation fieldset,
{
border: 0;
}
.tags {
font-size: 11px;
}
......
......@@ -24,7 +24,6 @@ div.editview {
}
#view table.filedata {
margin-top: 1em;
width: 95%;
border: none;
}
#view table.filedata th {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment