Sha256: ede95c2736f5ed5c343c1bfb522de2f7efc0196eb4e6175103e3b8ff1977c9d8

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

$(document).ready(function(){
  $('ul.filetree').treeview({
    persist: 'location',
		animated: 'fast',
    unique: true,
    collapsed: true
  });

  $("span.file").click(function(){
    $('a.selected').removeClass('selected');
    $('#file_contents').load('/source', { file: $(this).attr('name') });
    $('a',this).eq(0).addClass('selected');
  });

  $('a.selected').parent('span.file').click();
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.2.0 examples/sourceview/public/sourceview.js