added missing js code for last commit

This commit is contained in:
Ian 2012-10-13 10:05:40 +02:00
parent 017bef1a66
commit f9ba5730c2
3 changed files with 34 additions and 1 deletions

View file

@ -1,3 +1,5 @@
3.96: Added last commits missing code part for the javascript hidden boxes (Timbalu)
3.95: Fixed bad XHTML in <option> tag (Timbalu),
added ability to preview staticpages, restrict viewing draft staticpages to logged in authors
added option to set META input fields, set structure and meta field box to javascript hidden content (Timbalu)

View file

@ -3,6 +3,37 @@
<script type="text/javascript">
var img_plus = '{serendipity_getFile file="img/plus.png"}';
var img_minus = '{serendipity_getFile file="img/minus.png"}';
{literal}
function showConfig(id) {
if (document.getElementById) {
el = document.getElementById(id);
if (el.style.display == 'none') {
document.getElementById('option' + id).src = img_minus;
el.style.display = '';
} else {
document.getElementById('option' + id).src = img_plus;
el.style.display = 'none';
}
}
}
function showConfigAll(count) {
if (document.getElementById) {
for (i = 1; i <= count; i++) {
document.getElementById('el' + i).style.display = state;
document.getElementById('optionel' + i).src = (state == '' ? img_minus : img_plus);
}
if (state == '') {
document.getElementById('optionall').src = img_minus;
state = 'none';
} else {
document.getElementById('optionall').src = img_plus;
state = '';
}
}
}
{/literal}
</script>
<div id="backend_sp_simple" class="default_staticpage">

View file

@ -87,7 +87,7 @@ class serendipity_event_staticpage extends serendipity_event
$propbag->add('page_configuration', $this->config);
$propbag->add('type_configuration', $this->config_types);
$propbag->add('author', 'Marco Rinck, Garvin Hicking, David Rolston, Falk Doering, Stephan Manske, Pascal Uhlmann, Ian');
$propbag->add('version', '3.95');
$propbag->add('version', '3.96');
$propbag->add('requirements', array(
'serendipity' => '1.3',
'smarty' => '2.6.7',