Sha256: e2dcdd7e26bea5560aa73757531ca379922e4dc13f40e71c0afdac7f54e7b40d

Contents?: true

Size: 1.67 KB

Versions: 9

Compression:

Stored size: 1.67 KB

Contents

$(document).ready(function(){
  $('.sortable-table').tablesorter();
  $('.rich_editor').tinymce({
    script_url : '/javascripts/tinymce/tiny_mce.js',
    theme : "advanced",
    plugins : "pdw,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
    theme_advanced_buttons1 : "pdw_toggle,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,cut,copy,paste,pastetext,pasteword",
    theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,preview",
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,media|,fullscreen",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
    theme_advanced_resizing : true,
    theme_advanced_resize_horizontal : false,
    pdw_toggle_on : 1,
    pdw_toggle_toolbars : "2,3",
    content_css : "/stylesheets/tinymce/custom_rich_editor.css"
  });

  $('.disabled-button').button({disabled: true});
  
  $(".collapsible ol").hide();
  $(".collapsible legend").click(function(){
    $(this).nextAll("ol").slideToggle(500);
    $(this).parent().toggleClass("open");
  });
  
  $(".tabs").tabs({fx: { height: 'toggle'}});
  
  $(".collapsible legend").append(" <span class='expand'>Expand</span> <span class='close'>Close</span>");
  $(".collapsible legend").css({"cursor":"pointer"});
  $(".selected").last().addClass("last");
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cable-0.9.16 public/javascripts/admin.js
cable-0.9.15 public/javascripts/admin.js
cable-0.9.14 public/javascripts/admin.js
cable-0.9.13 public/javascripts/admin.js
cable-0.9.12 public/javascripts/admin.js
cable-0.9.11 public/javascripts/admin.js
cable-0.9.10 public/javascripts/admin.js
cable-0.9.9 public/javascripts/admin.js
cable-0.9.8 public/javascripts/admin.js