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', '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',

View File

@ -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',

View File

@ -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' ',

View File

@ -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) {

View File

@ -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');

View File

@ -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'

View File

@ -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');

View File

@ -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'