Skip to content

Commit a0db0f6

Browse files
committed
fix path to flash
1 parent 3fa0fca commit a0db0f6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

source/javascripts/codebuttons.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ initZclip = function(e) {
77
$('.tab-pane:hidden .copycode').unbind();
88
$('.tab-pane:hidden').find('.zclip').remove();
99

10+
//this is kinda hacky but let's infer the root from the home button
11+
var root = $('.nav-link > a')[0].href.replace('/index.html','');
12+
13+
path = root + "/flash/";
14+
1015
var options = {
11-
path:'/flash/ZeroClipboard.swf',
16+
path: path + 'ZeroClipboard.swf',
1217
copy: function(){
1318
$('.copycode').html('<i class="icon-file"></i> Copy');
1419
var element = $('#' + this.id.replace('copy_','code_'));

0 commit comments

Comments
 (0)