|
From: <ma...@us...> - 2010-11-14 17:08:14
|
Revision: 124
http://openautomation.svn.sourceforge.net/openautomation/?rev=124&view=rev
Author: mayerch
Date: 2010-11-14 16:41:45 +0000 (Sun, 14 Nov 2010)
Log Message:
-----------
Fixed design change to work under edit mode as well
Modified Paths:
--------------
CometVisu/trunk/visu/edit_config.html
CometVisu/trunk/visu/lib/visudesign_custom.js
Modified: CometVisu/trunk/visu/edit_config.html
===================================================================
--- CometVisu/trunk/visu/edit_config.html 2010-11-14 16:16:00 UTC (rev 123)
+++ CometVisu/trunk/visu/edit_config.html 2010-11-14 16:41:45 UTC (rev 124)
@@ -5,7 +5,7 @@
<head>
<title>Visu - Editor-Modus</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <link rel="stylesheet" type="text/css" href="style_discreet.css" />
+<!-- <link rel="stylesheet" type="text/css" href="style_discreet.css" /> -->
<link rel="stylesheet" type="text/css" href="edit/style_edit.css" />
<script src="lib/jquery.js" type="text/javascript"></script>
<script src="lib/jquery-ui.js" type="text/javascript"></script>
Modified: CometVisu/trunk/visu/lib/visudesign_custom.js
===================================================================
--- CometVisu/trunk/visu/lib/visudesign_custom.js 2010-11-14 16:16:00 UTC (rev 123)
+++ CometVisu/trunk/visu/lib/visudesign_custom.js 2010-11-14 16:41:45 UTC (rev 124)
@@ -46,7 +46,7 @@
ret_val.addClass( 'switch' );
var label = '<div class="label">' + page.textContent + '</div>';
var actor = '<div class="actor switchUnpressed">';
- var value = $('link').attr('href').split('/')[1];
+ var value = $('link[href*="designs"]').attr('href').split('/')[1];
actor += '<div class="value">' + value + '</div>';
actor += '</div>';
ret_val.append( label ).append( $(actor).data( {
@@ -68,7 +68,7 @@
var oldDesign = $('.value',this).text();
var newDesign = designs[ (designs.indexOf(oldDesign) + 1) % designs.length ];
$('.value',this).text(newDesign);
- $('link').each(function(){
+ $('link[href*="designs"]').each(function(){
this.href = this.href.replace( oldDesign, newDesign );
});
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|