knowledge base module removed
This commit is contained in:
parent
b9984c8995
commit
37df8abfc7
@ -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',
|
@ -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',
|
@ -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' ',
|
@ -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) {
|
@ -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');
|
@ -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'
|
@ -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');
|
@ -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'
|
Loading…
Reference in New Issue
Block a user