Commits

reorx committed 0b98e2b

now reconstruction!

Comments (0)

Files changed (3)

static/knowledge/css/base.css

 }
 #knowledgeMenu {
     position: absolute;
-    width: 25px;height: 83px;
+    width: 25px;height: 62px;
     border: 1px solid #000;
     z-index: 100;
 }

static/knowledge/js/base.js

     ajax_get(url,DOM);
 }
 function Content_AddPage(mode) {
-    KNOWLEDGE.id = '';
     var url = '/knowledge/editor_contentpart/'
     var DOM1 = '#Content_Main';
     var DOM2 = '#contentExtend';
             //
             $.ajax({
                 type: 'GET',
-                url: '/knowledge/editor_extendpart/?mode=add&knowledge_id='+KNOWLEDGE.id,
+                url: '/knowledge/editor_extendpart/?mode=add&knowledge_id=',
                 success: function(html){
                     $(DOM2).html(html);
                     if (mode=="child") {
                             loading_off();
                         });
                     }
-                    if (mode=='brother') {
-                        $.get('/knowledge/get_parent_title/?knowledge_id='+KNOWLEDGE.id,function(html){
-                            $('#InputParent').val(html);
-                        });
-                        $.get('/knowledge/get_self_title/?knowledge_id='+KNOWLEDGE.id,function(html){
-                            $('#InputBrother').val(html);
-                            loading_off();
-                        });
-                    }
                     if (mode=='multiple') {
                         loading_off();
                     }

templates/knowledge/base.html

     <div id="knowledgeMenu" class="hidden">
         <a href="#" id="" class="Button_KM" onclick="Content_EditPage();">Edit</a>
         <a href="#" id="" class="Button_KM" onclick="Content_AddPage('child');">Chi</a>
-        <a href="#" id="" class="Button_KM" onclick="Content_AddPage('brother');">Bro</a>
         <a href="#" id="" class="Button_KM" onclick="delete_knowledge()">Del</a>
     </div>
 </body>