Permalink
Browse files

DRY / formatting.

  • Loading branch information...
1 parent 50dc054 commit 6e8cf58b68725ab8c7cb8db2afb6535d5e59c6c5 @Mark-H committed Apr 7, 2012
@@ -24,12 +24,10 @@
require_once dirname(dirname(__FILE__)).'/model/versionx.class.php';
$versionx = new VersionX($modx);
$versionx->initialize('mgr');
-$action = $modx->getObject('modAction',array(
- 'namespace' => 'versionx',
- 'controller' => 'controllers/index',
-));
+$action = $versionx->getAction();
if ($action) $action = $action->get('id');
+
$modx->regClientStartupHTMLBlock('
<script type="text/javascript">
Ext.onReady(function() {
@@ -40,7 +38,9 @@
<style type="text/css">
.ext-gecko .x-form-text, .ext-ie8 .x-form-text {padding-top: 0;}
- .vx-added .x-form-item-label { color: green; } .vx-changed .x-form-item-label { color: #dd6600; } .vx-removed .x-form-item-label { color: #ff0000; }
+ .vx-added .x-form-item-label { color: green; }
+ .vx-changed .x-form-item-label { color: #dd6600; }
+ .vx-removed .x-form-item-label { color: #ff0000; }
</style>');
$modx->regClientStartupScript($versionx->config['js_url'].'mgr/versionx.class.js');
@@ -36,8 +36,6 @@ class VersionX {
/**
* @param \modX $modx
* @param array $config
- * @return \VersionX
- *
*/
function __construct(modX &$modx,array $config = array()) {
$this->modx =& $modx;

0 comments on commit 6e8cf58

Please sign in to comment.