|
From: <j-...@us...> - 2012-01-31 20:42:12
|
Revision: 675
http://openautomation.svn.sourceforge.net/openautomation/?rev=675&view=rev
Author: j-n-k
Date: 2012-01-31 20:42:01 +0000 (Tue, 31 Jan 2012)
Log Message:
-----------
Fix $.fn.setWidgetStyling (was broken when no styling defined)
Modified Paths:
--------------
CometVisu/trunk/visu/designs/structure_pure.js
Modified: CometVisu/trunk/visu/designs/structure_pure.js
===================================================================
--- CometVisu/trunk/visu/designs/structure_pure.js 2012-01-31 19:14:25 UTC (rev 674)
+++ CometVisu/trunk/visu/designs/structure_pure.js 2012-01-31 20:42:01 UTC (rev 675)
@@ -29,10 +29,9 @@
*/
$.fn.setWidgetStyling = function(value) {
- if (this.data('styling')) {
- var styling = stylings[this.data('styling')];
+ var styling = stylings[this.data('styling')];
+ if (styling) {
this.removeClass(styling['classnames']); // remove only styling classes
-
if (styling[value]) { // fixed value
this.addClass(styling[value]);
} else { //
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|