projects
/
potlatch2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9df33e
)
Fix small flaw in the stylesheet choosing logic
author
Andy Allan
<gravitystorm@gmail.com>
Wed, 1 Sep 2010 12:47:42 +0000
(12:47 +0000)
committer
Andy Allan
<gravitystorm@gmail.com>
Wed, 1 Sep 2010 12:47:42 +0000
(12:47 +0000)
potlatch2.mxml
patch
|
blob
|
history
diff --git
a/potlatch2.mxml
b/potlatch2.mxml
index b340a7e09ff17a93aa536a0cde4eb25eeb6d3a62..6ca393578ccf9e5f44b3ff4f703d84d7aa71b362 100755
(executable)
--- a/
potlatch2.mxml
+++ b/
potlatch2.mxml
@@
-297,13
+297,15
@@
break;
}
}
- if (!isSet && theController.stylesheets.length > 0) {
+ if (!isSet) {
+ if(theController.stylesheets.length > 0) {
var s:Object = theController.stylesheets[0];
setStylesheet(s['label'], s['data']);
- } else {
+
} else {
//hit and hope. FIXME should this be an error state?
theController.stylesheets.push({ label:'Potlatch', data:'potlatch.css'});
setStylesheet('Potlatch','potlatch.css');
+ }
}
}