knowledge base module removed

This commit is contained in:
Anand Doshi 2012-04-20 11:17:10 +05:30
parent b9984c8995
commit 37df8abfc7
23 changed files with 18 additions and 18 deletions

View File

@ -18,7 +18,7 @@
'colour': u'White:FFF',
'doctype': 'DocType',
'in_create': 1,
'module': u'Knowledge Base',
'module': u'Utilities',
'name': '__common__',
'read_only': 1,
'section_style': u'Simple',
@ -99,4 +99,4 @@
'label': u'Users Voted',
'print_hide': 1
}
]
]

View File

@ -18,7 +18,7 @@
'colour': u'White:FFF',
'doctype': 'DocType',
'in_create': 1,
'module': u'Knowledge Base',
'module': u'Utilities',
'name': '__common__',
'read_only': 1,
'section_style': u'Simple',
@ -155,4 +155,4 @@
'oldfieldname': u'file_list',
'oldfieldtype': u'Text'
}
]
]

View File

@ -15,7 +15,7 @@
'colour': u'White:FFF',
'doctype': 'DocType',
'issingle': 1,
'module': u'Knowledge Base',
'module': u'Utilities',
'name': '__common__',
'section_style': u'Simple',
'server_code_error': u' ',
@ -27,4 +27,4 @@
'doctype': 'DocType',
'name': u'Question Control'
}
]
]

View File

@ -56,7 +56,7 @@ KBItemToolbar = function(args, kb) {
console.log(1);
this.innerHTML = 'deleting...';
this.disabled = 1;
$c_page('knowledge_base', 'questions', 'delete', {
$c_page('utilities', 'questions', 'delete', {
dt: me.doctype, dn: me.det.name}, function(r,rt) {
// reload the list
kb.list.run()
@ -112,7 +112,7 @@ EditableText = function(args) {
}
var btn = this;
$(btn).set_working();
$c_page('knowledge_base', 'question_view', 'update_item', {
$c_page('utilities', 'question_view', 'update_item', {
dt: me.dt, dn: me.dn, fn: me.fieldname, text: v
},
function(r) {
@ -140,4 +140,4 @@ EditableText = function(args) {
me.$w.find('.ed-text-input, .ed-text-save, .ed-text-cancel, .help').toggle(true);
}
}
}

View File

@ -65,7 +65,7 @@ KBQuestionView = function(w, qid, qtext) {
// check if users has answered
// (if no) then add a box to add a new answer
this.make_add_answer = function() {
$c_page('knowledge_base', 'question_view', 'has_answered', qid, function(r, rt) {
$c_page('utilities', 'question_view', 'has_answered', qid, function(r, rt) {
if(r.message=='No') {
me.make_answer_box_link();
}
@ -92,7 +92,7 @@ KBQuestionView = function(w, qid, qtext) {
var v = wn.tinymce.get_value(me.input);
if(!v) { msgprint('Write something!'); return; }
me.btn.set_working();
$c_page('knowledge_base', 'question_view', 'add_answer', {qid: qid, answer:v},
$c_page('utilities', 'question_view', 'add_answer', {qid: qid, answer:v},
function(r, rt) {
me.btn.done_working();
me.ans_list.list.run();
@ -107,7 +107,7 @@ KBQuestionView = function(w, qid, qtext) {
this.make();
}
else {
$c_page('knowledge_base', 'question_view', 'get_question', qid, function(r, rt) {
$c_page('utilities', 'question_view', 'get_question', qid, function(r, rt) {
qtext = r.message;
me.make();
});
@ -185,4 +185,4 @@ KBAnswer = function(body, data, ans_list) {
}
wn.require('erpnext/knowledge_base/page/kb_common/kb_common.js');
wn.require('erpnext/utilities/page/kb_common/kb_common.js');

View File

@ -13,7 +13,7 @@
# These values are common for all Page
{
'doctype': 'Page',
'module': 'Knowledge Base',
'module': 'Utilities',
'name': '__common__',
'page_name': 'Question View',
'standard': 'Yes'
@ -24,4 +24,4 @@
'doctype': 'Page',
'name': 'question-view'
}
]
]

View File

@ -88,7 +88,7 @@ function KnowledgeBase(w) {
// add a new question to the database
this.add_question = function(suggest_list) {
$c_page('knowledge_base', 'questions', 'add_question', {
$c_page('utilities', 'questions', 'add_question', {
question: this.search.value,
suggest: suggest_list
}, function(r,rt) {
@ -219,4 +219,4 @@ KBQuestion = function(parent, det, kb) {
this.make()
}
wn.require('erpnext/knowledge_base/page/kb_common/kb_common.js');
wn.require('erpnext/utilities/page/kb_common/kb_common.js');

View File

@ -13,7 +13,7 @@
# These values are common for all Page
{
'doctype': 'Page',
'module': 'Knowledge Base',
'module': 'Utilities',
'name': '__common__',
'page_name': 'Questions',
'standard': 'Yes'