Sha256: 5b6661be8622969682165c267301ed8e2d6d047e7f15391e755284f2fed8ede0

Contents?: true

Size: 1.75 KB

Versions: 9

Compression:

Stored size: 1.75 KB

Contents

$(document).ready(function(){
  $('.sortable-table').tablesorter();
  $().ready(function() {
    $('textarea.tinymce').tinymce({
      script_url : '/javascripts/tinymce/tiny_mce.js',
      theme : "advanced",
      height : "400px",
      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"
    });
  });
  $('.disabled-button').button({disabled: true});
  // $('.yes_no :checkbox').iphoneStyle({
  //   checkedLabel: 'YES',
  //   uncheckedLabel: 'NO'
  // });
  
  $(".collapsible ol").hide();
  $(".collapsible legend").click(function(){
    $(this).nextAll("ol").slideToggle(500);
    $(this).parent().toggleClass("open")
  });
  $(".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.6 public/javascripts/admin.js
cable-0.9.5 public/javascripts/admin.js
cable-0.9.4 public/javascripts/admin.js
cable-0.9.3 public/javascripts/admin.js
cable-0.9.1 public/javascripts/admin.js
cable-0.9.0 public/javascripts/admin.js
cable-0.8.6 public/javascripts/admin.js
cable-0.8.5 public/javascripts/admin.js
cable-0.8.4 public/javascripts/admin.js