Sha256: 285b01c96f10a9e3adae170ae0a156cf8e1cc908a1be88b346bc6e682f8340c6

Contents?: true

Size: 789 Bytes

Versions: 4

Compression:

Stored size: 789 Bytes

Contents

%h2 Code Slices
%hr
.slice-list
  %p
    %label Links:
    %select.link
      %option{} Choose a page to link
      - for link in orange[:sitemap].home(self).self_and_descendants
        %option{:value => link.id}= ("  "*link.level) + orange[:sitemap].link_text_for(link)[0..60] + '...'
    %br
:javascript
  $('.slice-list .calendar').change(function(){
    $.markItUp({ replaceWith: '<o:calendar name="'+$(this).val()+'" />' } );
    $.fn.colorbox.close();
  });
  $('.slice-list .contact').change(function(){
    $.markItUp({ replaceWith: '<o:contactform name="'+$(this).val()+'" />' } );
    $.fn.colorbox.close();
  });
  $('.slice-list .link').change(function(){
    $.markItUp({ replaceWith: '<o:link id="'+$(this).val()+'"></o:link>' } );
    $.fn.colorbox.close();
  });

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
orange-sparkles-0.7.1 lib/orange-sparkles/views/slices/slice_helper.haml
orange-sparkles-0.7.0 lib/orange-sparkles/views/slices/slice_helper.haml
orange-sparkles-0.5.9 lib/orange-sparkles/views/slices/slice_helper.haml
orange-sparkles-0.5.8 lib/orange-sparkles/views/slices/slice_helper.haml