refactored web / all-app now linked in app. no wnframework in website

This commit is contained in:
Rushabh Mehta
2012-12-14 16:39:27 +05:30
parent c248e2769e
commit 173a0fd4b7
11 changed files with 139 additions and 86 deletions

View File

@@ -135,23 +135,6 @@ erpnext.startup.set_periodic_updates = function() {
wn.updates.id = setInterval(erpnext.update_messages, 60000);
}
// subject, sender, description
erpnext.send_message = function(opts) {
if(opts.btn) {
$(opts.btn).start_working();
}
wn.call({
method: 'website.send_message',
args: opts,
callback: function(r) {
if(opts.btn) {
$(opts.btn).done_working();
}
if(opts.callback)opts.callback(r)
}
});
}
erpnext.hide_naming_series = function() {
if(cur_frm.fields_dict.naming_series) {
hide_field('naming_series');