diff --git a/module/doc/css/createlib.css b/module/doc/css/createlib.css new file mode 100644 index 0000000000..8ab73a0b3b --- /dev/null +++ b/module/doc/css/createlib.css @@ -0,0 +1 @@ +body{background:white; margin-top:20px; padding-bottom:0} diff --git a/module/doc/css/editlib.css b/module/doc/css/editlib.css new file mode 100644 index 0000000000..8ab73a0b3b --- /dev/null +++ b/module/doc/css/editlib.css @@ -0,0 +1 @@ +body{background:white; margin-top:20px; padding-bottom:0} diff --git a/module/doc/js/common.js b/module/doc/js/common.js new file mode 100644 index 0000000000..4e449d5799 --- /dev/null +++ b/module/doc/js/common.js @@ -0,0 +1,29 @@ +/* Load the products of the roject. */ +function loadProducts(project) +{ + link = createLink('project', 'ajaxGetProducts', 'projectID=' + project); + $('#productBox').load(link); +} + +/* Set doc type. */ +function setType(type) +{ + if(type == 'url') + { + $('#urlBox').show(); + $('#fileBox').hide(); + $('#contentBox').hide(); + } + else if(type == 'text') + { + $('#urlBox').hide(); + $('#fileBox').hide(); + $('#contentBox').show(); + } + else + { + $('#urlBox').hide(); + $('#fileBox').show(); + $('#contentBox').hide(); + } +} diff --git a/module/doc/js/create.js b/module/doc/js/create.js new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/module/doc/js/create.js @@ -0,0 +1 @@ + diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php index 54b03231f5..6679279901 100644 --- a/module/doc/view/create.html.php +++ b/module/doc/view/create.html.php @@ -12,87 +12,59 @@ ?> - -