knowledge base module removed
This commit is contained in:
parent
b9984c8995
commit
37df8abfc7
@ -18,7 +18,7 @@
|
|||||||
'colour': u'White:FFF',
|
'colour': u'White:FFF',
|
||||||
'doctype': 'DocType',
|
'doctype': 'DocType',
|
||||||
'in_create': 1,
|
'in_create': 1,
|
||||||
'module': u'Knowledge Base',
|
'module': u'Utilities',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'read_only': 1,
|
'read_only': 1,
|
||||||
'section_style': u'Simple',
|
'section_style': u'Simple',
|
||||||
@ -99,4 +99,4 @@
|
|||||||
'label': u'Users Voted',
|
'label': u'Users Voted',
|
||||||
'print_hide': 1
|
'print_hide': 1
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -18,7 +18,7 @@
|
|||||||
'colour': u'White:FFF',
|
'colour': u'White:FFF',
|
||||||
'doctype': 'DocType',
|
'doctype': 'DocType',
|
||||||
'in_create': 1,
|
'in_create': 1,
|
||||||
'module': u'Knowledge Base',
|
'module': u'Utilities',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'read_only': 1,
|
'read_only': 1,
|
||||||
'section_style': u'Simple',
|
'section_style': u'Simple',
|
||||||
@ -155,4 +155,4 @@
|
|||||||
'oldfieldname': u'file_list',
|
'oldfieldname': u'file_list',
|
||||||
'oldfieldtype': u'Text'
|
'oldfieldtype': u'Text'
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -15,7 +15,7 @@
|
|||||||
'colour': u'White:FFF',
|
'colour': u'White:FFF',
|
||||||
'doctype': 'DocType',
|
'doctype': 'DocType',
|
||||||
'issingle': 1,
|
'issingle': 1,
|
||||||
'module': u'Knowledge Base',
|
'module': u'Utilities',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'section_style': u'Simple',
|
'section_style': u'Simple',
|
||||||
'server_code_error': u' ',
|
'server_code_error': u' ',
|
||||||
@ -27,4 +27,4 @@
|
|||||||
'doctype': 'DocType',
|
'doctype': 'DocType',
|
||||||
'name': u'Question Control'
|
'name': u'Question Control'
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -56,7 +56,7 @@ KBItemToolbar = function(args, kb) {
|
|||||||
console.log(1);
|
console.log(1);
|
||||||
this.innerHTML = 'deleting...';
|
this.innerHTML = 'deleting...';
|
||||||
this.disabled = 1;
|
this.disabled = 1;
|
||||||
$c_page('knowledge_base', 'questions', 'delete', {
|
$c_page('utilities', 'questions', 'delete', {
|
||||||
dt: me.doctype, dn: me.det.name}, function(r,rt) {
|
dt: me.doctype, dn: me.det.name}, function(r,rt) {
|
||||||
// reload the list
|
// reload the list
|
||||||
kb.list.run()
|
kb.list.run()
|
||||||
@ -112,7 +112,7 @@ EditableText = function(args) {
|
|||||||
}
|
}
|
||||||
var btn = this;
|
var btn = this;
|
||||||
$(btn).set_working();
|
$(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
|
dt: me.dt, dn: me.dn, fn: me.fieldname, text: v
|
||||||
},
|
},
|
||||||
function(r) {
|
function(r) {
|
||||||
@ -140,4 +140,4 @@ EditableText = function(args) {
|
|||||||
me.$w.find('.ed-text-input, .ed-text-save, .ed-text-cancel, .help').toggle(true);
|
me.$w.find('.ed-text-input, .ed-text-save, .ed-text-cancel, .help').toggle(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -65,7 +65,7 @@ KBQuestionView = function(w, qid, qtext) {
|
|||||||
// check if users has answered
|
// check if users has answered
|
||||||
// (if no) then add a box to add a new answer
|
// (if no) then add a box to add a new answer
|
||||||
this.make_add_answer = function() {
|
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') {
|
if(r.message=='No') {
|
||||||
me.make_answer_box_link();
|
me.make_answer_box_link();
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ KBQuestionView = function(w, qid, qtext) {
|
|||||||
var v = wn.tinymce.get_value(me.input);
|
var v = wn.tinymce.get_value(me.input);
|
||||||
if(!v) { msgprint('Write something!'); return; }
|
if(!v) { msgprint('Write something!'); return; }
|
||||||
me.btn.set_working();
|
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) {
|
function(r, rt) {
|
||||||
me.btn.done_working();
|
me.btn.done_working();
|
||||||
me.ans_list.list.run();
|
me.ans_list.list.run();
|
||||||
@ -107,7 +107,7 @@ KBQuestionView = function(w, qid, qtext) {
|
|||||||
this.make();
|
this.make();
|
||||||
}
|
}
|
||||||
else {
|
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;
|
qtext = r.message;
|
||||||
me.make();
|
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
|
# These values are common for all Page
|
||||||
{
|
{
|
||||||
'doctype': 'Page',
|
'doctype': 'Page',
|
||||||
'module': 'Knowledge Base',
|
'module': 'Utilities',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'page_name': 'Question View',
|
'page_name': 'Question View',
|
||||||
'standard': 'Yes'
|
'standard': 'Yes'
|
||||||
@ -24,4 +24,4 @@
|
|||||||
'doctype': 'Page',
|
'doctype': 'Page',
|
||||||
'name': 'question-view'
|
'name': 'question-view'
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -88,7 +88,7 @@ function KnowledgeBase(w) {
|
|||||||
|
|
||||||
// add a new question to the database
|
// add a new question to the database
|
||||||
this.add_question = function(suggest_list) {
|
this.add_question = function(suggest_list) {
|
||||||
$c_page('knowledge_base', 'questions', 'add_question', {
|
$c_page('utilities', 'questions', 'add_question', {
|
||||||
question: this.search.value,
|
question: this.search.value,
|
||||||
suggest: suggest_list
|
suggest: suggest_list
|
||||||
}, function(r,rt) {
|
}, function(r,rt) {
|
||||||
@ -219,4 +219,4 @@ KBQuestion = function(parent, det, kb) {
|
|||||||
this.make()
|
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
|
# These values are common for all Page
|
||||||
{
|
{
|
||||||
'doctype': 'Page',
|
'doctype': 'Page',
|
||||||
'module': 'Knowledge Base',
|
'module': 'Utilities',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'page_name': 'Questions',
|
'page_name': 'Questions',
|
||||||
'standard': 'Yes'
|
'standard': 'Yes'
|
Loading…
Reference in New Issue
Block a user