mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
changed module link of event_updates and my_company to home
This commit is contained in:
@@ -610,7 +610,7 @@ pscript.home_make_status = function() {
|
|||||||
var wrapper = page_body.pages['Event Updates'];
|
var wrapper = page_body.pages['Event Updates'];
|
||||||
|
|
||||||
// get values
|
// get values
|
||||||
$c_page('event_updates', 'event_updates', 'get_status_details', user,
|
$c_page('home', 'event_updates', 'get_status_details', user,
|
||||||
function(r,rt) {
|
function(r,rt) {
|
||||||
|
|
||||||
home_status_bar.render(r.message);
|
home_status_bar.render(r.message);
|
||||||
@@ -640,7 +640,7 @@ pscript.convert_to_paid = function() {
|
|||||||
if(r.exc) { msgprint(r.exc); return; }
|
if(r.exc) { msgprint(r.exc); return; }
|
||||||
$(pscript.trial_box).slideUp();
|
$(pscript.trial_box).slideUp();
|
||||||
}
|
}
|
||||||
$c_page('event_updates','event_updates','convert_to_paid','',callback)
|
$c_page('home','event_updates','convert_to_paid','',callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
// show system message
|
// show system message
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ pscript.myc_show_erpnext_message = function() {
|
|||||||
+ ' users enabled out of ' + r.message.max_user
|
+ ' users enabled out of ' + r.message.max_user
|
||||||
+ '. Go to <a href="javascript:pscript.go_to_account_settings()">Account Settings</a> to increase the number of users');
|
+ '. Go to <a href="javascript:pscript.go_to_account_settings()">Account Settings</a> to increase the number of users');
|
||||||
}
|
}
|
||||||
$c_page('my_company', 'my_company', 'get_max_users', '', callback)
|
$c_page('home', 'my_company', 'get_max_users', '', callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -54,7 +54,7 @@ pscript.myc_add_user = function() {
|
|||||||
v = d.get_values();
|
v = d.get_values();
|
||||||
if(v) {
|
if(v) {
|
||||||
d.fields_dict.add.input.set_working();
|
d.fields_dict.add.input.set_working();
|
||||||
$c_page('my_company', 'my_company', 'add_user', v, function(r,rt) {
|
$c_page('home', 'my_company', 'add_user', v, function(r,rt) {
|
||||||
if(r.exc) { msgprint(r.exc); return; }
|
if(r.exc) { msgprint(r.exc); return; }
|
||||||
else {
|
else {
|
||||||
d.hide();
|
d.hide();
|
||||||
@@ -99,7 +99,7 @@ MemberList = function(parent) {
|
|||||||
if(pscript.online_users) {
|
if(pscript.online_users) {
|
||||||
this.make_list();
|
this.make_list();
|
||||||
} else {
|
} else {
|
||||||
$c_page('event_updates', 'event_updates', 'get_online_users', '', function(r,rt) {
|
$c_page('home', 'event_updates', 'get_online_users', '', function(r,rt) {
|
||||||
pscript.online_users = r.message;
|
pscript.online_users = r.message;
|
||||||
me.make_list();
|
me.make_list();
|
||||||
})
|
})
|
||||||
@@ -333,7 +333,7 @@ MemberProfile = function(parent, uid, member_item) {
|
|||||||
pscript.myc_refresh()
|
pscript.myc_refresh()
|
||||||
msgprint("User Deleted Successfully");
|
msgprint("User Deleted Successfully");
|
||||||
}
|
}
|
||||||
$c_page('my_company', 'my_company', 'delete_user', {'user': me.uid}, callback);
|
$c_page('home', 'my_company', 'delete_user', {'user': me.uid}, callback);
|
||||||
}
|
}
|
||||||
d.show();
|
d.show();
|
||||||
}
|
}
|
||||||
@@ -354,7 +354,7 @@ MemberProfile = function(parent, uid, member_item) {
|
|||||||
me.refresh_enable_disable();
|
me.refresh_enable_disable();
|
||||||
}
|
}
|
||||||
this.set_working();
|
this.set_working();
|
||||||
$c_page('my_company','my_company', this.innerHTML.toLowerCase()+'_profile',me.profile.name, callback);
|
$c_page('home','my_company', this.innerHTML.toLowerCase()+'_profile',me.profile.name, callback);
|
||||||
}, null, null, 1);
|
}, null, null, 1);
|
||||||
}
|
}
|
||||||
if(this.uid==user) $dh(this.status_button); else $di(this.status_button);
|
if(this.uid==user) $dh(this.status_button); else $di(this.status_button);
|
||||||
@@ -473,7 +473,7 @@ MemberConversation = function(parent, uid, fullname) {
|
|||||||
// set all messages
|
// set all messages
|
||||||
// as "read" (docstatus = 0)
|
// as "read" (docstatus = 0)
|
||||||
if(user==uid) {
|
if(user==uid) {
|
||||||
$c_page('my_company', 'my_company', 'set_read_all_messages', '', function(r,rt) { });
|
$c_page('home', 'my_company', 'set_read_all_messages', '', function(r,rt) { });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -505,7 +505,7 @@ MemberConversation = function(parent, uid, fullname) {
|
|||||||
msgprint('Please write a message first!'); return;
|
msgprint('Please write a message first!'); return;
|
||||||
}
|
}
|
||||||
this.post.set_working();
|
this.post.set_working();
|
||||||
$c_page('my_company', 'my_company', 'post_comment', {
|
$c_page('home', 'my_company', 'post_comment', {
|
||||||
uid: uid,
|
uid: uid,
|
||||||
comment: $(me.input).val(),
|
comment: $(me.input).val(),
|
||||||
notify: me.notify_check.checked ? 1 : 0
|
notify: me.notify_check.checked ? 1 : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user