mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
put javascript into separate file
This commit is contained in:
parent
3bc3739213
commit
e7a6ebb8ce
|
@ -33,7 +33,7 @@ if(!trim($settings->_encryptionKey))
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'settings'=>$settings, 'currenttab'=>(isset($_GET['currenttab']) ? $_GET['currenttab'] : '')));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'settings'=>$settings, 'currenttab'=>(isset($_GET['currenttab']) ? $_GET['currenttab'] : '')));
|
||||||
if($view) {
|
if($view) {
|
||||||
$view->show();
|
$view($_GET);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,16 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
function js() { /* {{{ */
|
||||||
|
?>
|
||||||
|
$(document).ready( function() {
|
||||||
|
$('#settingstab li a').click(function(event) {
|
||||||
|
$('#currenttab').val($(event.currentTarget).data('target').substring(1));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
<?php
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
@ -62,15 +72,6 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
|
||||||
$this->contentHeading(getMLText("settings"));
|
$this->contentHeading(getMLText("settings"));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script language="JavaScript">
|
|
||||||
$(document).ready( function() {
|
|
||||||
$('#settingstab li a').click(function(event) {
|
|
||||||
$('#currenttab').val($(event.currentTarget).data('target').substring(1));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<form action="../op/op.Settings.php" method="post" enctype="multipart/form-data" name="form0" >
|
<form action="../op/op.Settings.php" method="post" enctype="multipart/form-data" name="form0" >
|
||||||
<input type="hidden" name="action" value="saveSettings" />
|
<input type="hidden" name="action" value="saveSettings" />
|
||||||
<input type="hidden" id="currenttab" name="currenttab" value="<?php echo (isset($_POST['currenttab']) ? $_POST['currenttab'] : 'site' ); ?>" />
|
<input type="hidden" id="currenttab" name="currenttab" value="<?php echo (isset($_POST['currenttab']) ? $_POST['currenttab'] : 'site' ); ?>" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user