lib/public/js/parade-code-execution.js in parade-0.8.2 vs lib/public/js/parade-code-execution.js in parade-0.9.0

- old
+ new

@@ -6,13 +6,13 @@ $.subscribe("code:execute:visible",$.proxy(function(e,code) { this.executeVisibleCode(); },this)); }, visibleCodeBlocks: function() { - return { ruby : $('.execute .sh_ruby pre:visible'), - js : $('.execute .sh_javascript pre:visible'), - coffee : $('.execute .sh_coffeescript pre:visible') } + return { ruby : $('.execute .ruby pre:visible'), + js : $('.execute .javascript pre:visible'), + coffee : $('.execute .coffeescript pre:visible') } }, executeVisibleCode: function() { var codeBlocks = this.visibleCodeBlocks(); var supportedCodeBlockLanguages = Object.keys(codeBlocks); @@ -102,20 +102,20 @@ $(document).ready(function() { codeExecutor = new CodeExecutor; codeViewer = new CodeViewer; - $('.execute .sh_javascript pre').live("click", function() { + $('.execute pre.javascript').live("click", function() { var code = $(this).text(); $.publish('code:execute',{ lang: 'js', code: code, elem: $(this) }); }); - $('.execute .sh_ruby pre').live("click", function() { + $('.execute pre.ruby').live("click", function() { var code = $(this).text(); $.publish('code:execute',{ lang: 'ruby', code: code, elem: $(this) }); }); - $('.execute .sh_coffeescript pre').live("click", function() { + $('.execute pre.coffeescript').live("click", function() { var code = $(this).text(); $.publish('code:execute',{ lang: 'coffee', code: code, elem: $(this) }); }); }); \ No newline at end of file