|
From: <pe...@us...> - 2012-08-10 17:46:40
|
Revision: 933
http://openautomation.svn.sourceforge.net/openautomation/?rev=933&view=rev
Author: peuter
Date: 2012-08-10 17:46:32 +0000 (Fri, 10 Aug 2012)
Log Message:
-----------
fix to make the pagejumps work with the new page IDs (committed in Rev 932)
Revision Links:
--------------
http://openautomation.svn.sourceforge.net/openautomation/?rev=932&view=rev
Modified Paths:
--------------
CometVisu/trunk/visu/lib/templateengine.js
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2012-08-10 17:11:20 UTC (rev 932)
+++ CometVisu/trunk/visu/lib/templateengine.js 2012-08-10 17:46:32 UTC (rev 933)
@@ -550,7 +550,7 @@
function scrollToPage( page_id, speed ) {
$('.activePage').removeClass('activePage');
$('.pagejump.active').removeClass('active');
- if (page_id.match(/^[0-9_]+$/)==null) {
+ if (page_id.match(/^id_[0-9_]+$/)==null) {
// find Page-ID by name
$('.page h1').each(function(i) {
if ($(this).text()==page_id) {
@@ -589,7 +589,7 @@
// set pagejump for this page to active if it exists
$(".pagejump > .actor").each(function (i) {
var data = $(this).data();
- if (data.target.match(/^[0-9_]+$/)==null) {
+ if (data.target.match(/^id_[0-9_]+$/)==null) {
// get page id by name
if ($('#'+page_id+' h1').text()==data.target) {
$(this).parent().addClass("active");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|