setup wizard bounce animation when working

This commit is contained in:
Anand Doshi 2015-03-17 12:45:44 +05:30
parent 52c5121ecd
commit 3353ad42bc

View File

@ -8,6 +8,8 @@ frappe.pages['setup-wizard'].on_page_load = function(wrapper) {
$(".navbar:first").toggle(false); $(".navbar:first").toggle(false);
$("body").css({"padding-top":"30px"}); $("body").css({"padding-top":"30px"});
frappe.require("/assets/frappe/css/animate.min.css");
var wizard_settings = { var wizard_settings = {
page_name: "setup-wizard", page_name: "setup-wizard",
parent: wrapper, parent: wrapper,
@ -579,11 +581,13 @@ $.extend(erpnext.wiz, {
}, },
working_html: function() { working_html: function() {
return frappe.render_template("setup_wizard_message", { var msg = $(frappe.render_template("setup_wizard_message", {
image: "/assets/frappe/images/ui/bubble-tea-smile.svg", image: "/assets/frappe/images/ui/bubble-tea-smile.svg",
title: __("Setting Up"), title: __("Setting Up"),
message: __('Sit tight while your system is being setup. This may take a few moments.') message: __('Sit tight while your system is being setup. This may take a few moments.')
}); }));
msg.find(".setup-wizard-message-image").addClass("animated infinite bounce");
return msg.html();
}, },
complete_html: function() { complete_html: function() {