Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: lib/dartdoc/client-shared.dart

Issue 9844031: add disqus comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove generated file Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/dartdoc/client-static.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dartdoc/client-shared.dart
diff --git a/lib/dartdoc/client-shared.dart b/lib/dartdoc/client-shared.dart
index ac0d45b5b55ec097dfbc55f8f91d466f370ed220..9b3ab21c7cba27d5ff46dbd068421c193917c9e5 100644
--- a/lib/dartdoc/client-shared.dart
+++ b/lib/dartdoc/client-shared.dart
@@ -17,6 +17,7 @@ enableCodeBlocks() {
if (showCode == null) continue;
var pre = elem.query('pre.source');
+
showCode.on.click.add((e) {
if (pre.classes.contains('expanded')) {
pre.classes.remove('expanded');
@@ -29,5 +30,6 @@ enableCodeBlocks() {
pre.classes.add('expanded');
}
});
+
}
}
« no previous file with comments | « no previous file | lib/dartdoc/client-static.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698