From 2a68b01d7de8a31938c05889a101ebe12420b2cf Mon Sep 17 00:00:00 2001 From: Quitta Date: Mon, 17 Jun 2013 11:03:31 +0200 Subject: [PATCH] Tour seems to work here, not sure though --- code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js | 5 +++-- code/ryzom/tools/server/ryzom_ams/www/html/js/help.js | 5 +++-- .../ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js b/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js index e18c7f66c..a8f2ae935 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js +++ b/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js @@ -226,7 +226,7 @@ function docReady(){ }); //tour - if($('.index').length && typeof(tour)=='undefined') + if($('.tour').length && typeof(tour)=='undefined') { var tour = new Tour(); tour.addStep({ @@ -274,7 +274,8 @@ function docReady(){ $('#myModal').modal('show'); }); $('.btn-help').click(function(e){ - alert('test'); + + } }); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js b/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js index 45ace5790..3f34f46ec 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js +++ b/code/ryzom/tools/server/ryzom_ams/www/html/js/help.js @@ -4,7 +4,7 @@ function show_help(help_tip) { var tour = new Tour(); tour.addStep({ - element: ".span10:first", /* html element next to which the step popover should be shown */ + element: ".dashboard-avatar:first", /* html element next to which the step popover should be shown */ placement: "top", title: "Custom Tour", /* title of the popover */ content: "You can create tour like this. Click Next." /* content of the popover */ @@ -20,7 +20,8 @@ function show_help(help_tip) title: "Dashboard", content: "This is your dashboard from here you will find highlights." }); - tour.restart(); } + } + diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl b/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl index 727fa9028..87b8f36ad 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl +++ b/code/ryzom/tools/server/ryzom_ams/www/html/templates/home.tpl @@ -114,7 +114,7 @@

Introduction

- +