Ver a proveniência

method names prefix fixes

version-14
Akhilesh Darjee há 11 anos
ascendente
cometimento
bb43f1a816
6 ficheiros alterados com 7 adições e 8 eliminações
  1. +1
    -1
      webnotes/core/doctype/communication/communication.js
  2. +1
    -2
      webnotes/core/doctype/profile/profile.js
  3. +1
    -1
      webnotes/public/js/wn/form/assign_to.js
  4. +1
    -1
      webnotes/public/js/wn/views/communication.js
  5. +2
    -2
      webnotes/templates/includes/login.js
  6. +1
    -1
      webnotes/templates/pages/update-password.html

+ 1
- 1
webnotes/core/doctype/communication/communication.js Ver ficheiro

@@ -1,7 +1,7 @@
cur_frm.cscript.onload = function(doc) { cur_frm.cscript.onload = function(doc) {
cur_frm.fields_dict.user.get_query = function() { cur_frm.fields_dict.user.get_query = function() {
return { return {
query: "core.doctype.communication.communication.get_user"
query: "webnotes.core.doctype.communication.communication.get_user"
} }
}; };


+ 1
- 2
webnotes/core/doctype/profile/profile.js Ver ficheiro

@@ -20,11 +20,10 @@ cur_frm.cscript.before_load = function(doc, dt, dn, callback) {
wn.call({ wn.call({
method: "webnotes.core.doctype.profile.profile.get_languages", method: "webnotes.core.doctype.profile.profile.get_languages",
callback: function(r) { callback: function(r) {
console.log(r.message);
wn.languages = r.message; wn.languages = r.message;
update_language_select(); update_language_select();
} }
})
});
} else { } else {
update_language_select(); update_language_select();
} }


+ 1
- 1
webnotes/public/js/wn/form/assign_to.js Ver ficheiro

@@ -130,7 +130,7 @@ wn.ui.form.AssignTo = Class.extend({
}); });
} }
} }
me.dialog.fields_dict.assign_to.get_query = "core.doctype.profile.profile.profile_query";
me.dialog.fields_dict.assign_to.get_query = "webnotes.core.doctype.profile.profile.profile_query";
} }
me.dialog.clear(); me.dialog.clear();


+ 1
- 1
webnotes/public/js/wn/views/communication.js Ver ficheiro

@@ -301,7 +301,7 @@ wn.views.CommunicationComposer = Class.extend({
}; };
return wn.call({ return wn.call({
method:"core.doctype.communication.communication.make",
method:"webnotes.core.doctype.communication.communication.make",
args: { args: {
sender: [wn.user_info(user).fullname, wn.boot.profile.email], sender: [wn.user_info(user).fullname, wn.boot.profile.email],
recipients: form_values.recipients, recipients: form_values.recipients,


+ 2
- 2
webnotes/templates/includes/login.js Ver ficheiro

@@ -25,7 +25,7 @@ $(window).on("hashchange", function() {
login.do_login = function(){ login.do_login = function(){
var args = {}; var args = {};
if(window.is_sign_up) { if(window.is_sign_up) {
args.cmd = "core.doctype.profile.profile.sign_up";
args.cmd = "webnotes.core.doctype.profile.profile.sign_up";
args.email = ($("#login_id").val() || "").trim(); args.email = ($("#login_id").val() || "").trim();
args.full_name = ($("#full_name").val() || "").trim(); args.full_name = ($("#full_name").val() || "").trim();


@@ -34,7 +34,7 @@ login.do_login = function(){
return false; return false;
} }
} else if(window.is_forgot) { } else if(window.is_forgot) {
args.cmd = "core.doctype.profile.profile.reset_password";
args.cmd = "webnotes.core.doctype.profile.profile.reset_password";
args.user = ($("#login_id").val() || "").trim(); args.user = ($("#login_id").val() || "").trim();
if(!args.user) { if(!args.user) {


+ 1
- 1
webnotes/templates/pages/update-password.html Ver ficheiro

@@ -56,7 +56,7 @@ $(document).ready(function() {
wn.call({ wn.call({
type: "POST", type: "POST",
method: "core.doctype.profile.profile.update_password",
method: "webnotes.core.doctype.profile.profile.update_password",
btn: $("#update"), btn: $("#update"),
args: args, args: args,
callback: function(r) { callback: function(r) {


Carregando…
Cancelar
Guardar