Index: create.html.php
===================================================================
--- create.html.php (revision 1051)
+++ create.html.php (revision 1052)
@@ -29,6 +29,25 @@
link = createLink('project', 'ajaxGetProducts', 'projectID=' + project);
$('#productBox').load(link);
}
+/* 设置文档类型。*/
+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();
+ }
+}