diff --git a/framework/control.class.php b/framework/control.class.php index bd70b5db6c..7a1f6c657b 100644 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -45,7 +45,6 @@ class control extends baseControl { if(!file_exists($mainViewFile)) { - if($this->viewType == 'xhtml') $this->app->viewType = 'html'; $this->devicePrefix = ''; $mainViewFile = $modulePath . 'view' . DS . $this->devicePrefix . $methodName . '.' . $viewType . '.php'; } diff --git a/module/doc/js/common.js b/module/doc/js/common.js index dba17c5d23..11963f515d 100644 --- a/module/doc/js/common.js +++ b/module/doc/js/common.js @@ -16,6 +16,17 @@ function toggleAcl(acl) } } +function loadDocModule(libID) +{ + link = createLink('doc', 'ajaxGetChild', 'libID=' + libID); + $.post(link, function(data) + { + $('#module').replaceWith(data); + $('#module_chosen').remove(); + $('#module').chosen(); + }); +} + function setBrowseType(type) { $.cookie('browseType', type, {expires:config.cookieLife, path:config.webRoot}); @@ -24,6 +35,12 @@ function setBrowseType(type) $(document).ready(function() { + // hide #module chosen dropdown on #lib dropdown show + $('#lib').on('chosen:showing_dropdown', function() + { + $('#module').trigger('chosen:close'); + }); + $('#pageActions ul.dropdown-menu').css('left', '67px'); $('.libs-group.sort').sortable( { diff --git a/module/doc/js/edit.js b/module/doc/js/edit.js index 3eb68ffeb7..50d5aa0e7d 100644 --- a/module/doc/js/edit.js +++ b/module/doc/js/edit.js @@ -15,21 +15,4 @@ $(function() $('#urlBox').removeClass('hidden'); } }); - - // hide #module chosen dropdown on #lib dropdown show - $('#lib').on('chosen:showing_dropdown', function() - { - $('#module').trigger('chosen:close'); - }); }) - -function loadDocModule(libID) -{ - link = createLink('doc', 'ajaxGetChild', 'libID=' + libID); - $.post(link, function(data) - { - $('#module').replaceWith(data); - $('#module_chosen').remove(); - $('#module').chosen(); - }); -} diff --git a/module/doc/view/x.create.html.php b/module/doc/view/x.create.html.php new file mode 100644 index 0000000000..8284474f26 --- /dev/null +++ b/module/doc/view/x.create.html.php @@ -0,0 +1,104 @@ + + * @package doc + * @version $Id: create.html.php 975 2010-07-29 03:30:25Z jajacn@126.com $ + * @link http://www.zentao.net + */ +?> + + + +doc->placeholder);?> + +