Merge branch 'responsive' of github.com:webnotes/erpnext into responsive
This commit is contained in:
commit
852a602624
@ -87,7 +87,6 @@ $.extend(erpnext.complete_setup, {
|
|||||||
} else {
|
} else {
|
||||||
$(this).done_working();
|
$(this).done_working();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -15,23 +15,14 @@
|
|||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
var current_module;
|
var current_module;
|
||||||
var is_system_manager = 0;
|
|
||||||
|
|
||||||
wn.provide('erpnext.startup');
|
wn.provide('erpnext.startup');
|
||||||
|
|
||||||
erpnext.startup.set_globals = function() {
|
|
||||||
if(inList(user_roles,'System Manager')) is_system_manager = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
erpnext.startup.start = function() {
|
erpnext.startup.start = function() {
|
||||||
console.log('Starting up...');
|
console.log('Starting up...');
|
||||||
$('#startup_div').html('Starting up...').toggle(true);
|
$('#startup_div').html('Starting up...').toggle(true);
|
||||||
|
|
||||||
erpnext.startup.set_globals();
|
|
||||||
|
|
||||||
if(user != 'Guest'){
|
if(user != 'Guest'){
|
||||||
erpnext.setup_mousetrap();
|
|
||||||
|
|
||||||
// setup toolbar
|
// setup toolbar
|
||||||
erpnext.toolbar.setup();
|
erpnext.toolbar.setup();
|
||||||
|
|
||||||
@ -66,27 +57,9 @@ erpnext.startup.start = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
erpnext.set_about();
|
erpnext.set_about();
|
||||||
if(wn.control_panel.custom_startup_code)
|
|
||||||
eval(wn.control_panel.custom_startup_code);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
erpnext.setup_mousetrap = function() {
|
|
||||||
$(document).keydown("meta+g ctrl+g", function(e) {
|
|
||||||
wn.ui.toolbar.search.show();
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document).keydown("meta+s ctrl+s", function(e) {
|
|
||||||
if(cur_frm) {
|
|
||||||
cur_frm.save_or_update();
|
|
||||||
}
|
|
||||||
else if(wn.container.page.save_action)
|
|
||||||
wn.container.page.save_action();
|
|
||||||
return false;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// start
|
// start
|
||||||
$(document).bind('startup', function() {
|
$(document).bind('startup', function() {
|
||||||
erpnext.startup.start();
|
erpnext.startup.start();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user