Sha256: 838a361bf16f2e2aa90c67bd4881337aca06b14be0c8d6647b230dd557a818d4

Contents?: true

Size: 1013 Bytes

Versions: 8

Compression:

Stored size: 1013 Bytes

Contents

:javascript
  $('#task_task_review_ids').select2({});
  new EasyMDE({
    element: document.getElementById('task_description'),
    status: false,
    showIcons: ['code'],
    spellChecker: false,
    placeholder: "Type description here...",
    renderingConfig: {
      codeSyntaxHighlighting: true,
    }
  });

- if task.new_record? || task.in_processing?
  :javascript
    var editor = ace.edit("script-editor", { printMarginColumn: false });
    var RubyMode = ace.require("ace/mode/ruby").Mode;
    editor.setTheme("ace/theme/solarized_dark");
    editor.session.setMode(new RubyMode());
    editor.renderer.setPadding(15);
    editor.renderer.setShowPrintMargin(false);
    editor.getSession().on("change", function () {
      $("#main-script").val(editor.getValue());
    });

    $('#click2full').click(function() {
      $('#script-editor-container').toggleClass('fullscreen');
      return false;
    });

    $('#js-add-more-file').click(function() {
      AddMoreFile();
      return false;
    });

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_execution-0.1.11 app/views/rails_execution/tasks/_form_scripts.html.haml
rails_execution-0.1.10 app/views/rails_execution/tasks/_form_scripts.html.haml
rails_execution-0.1.9 app/views/rails_execution/tasks/_form_scripts.html.haml
rails_execution-0.1.8 app/views/rails_execution/tasks/_form_scripts.html.haml
rails_execution-0.1.7 app/views/rails_execution/tasks/_form_scripts.html.haml
rails_execution-0.1.5 app/views/rails_execution/tasks/_form_scripts.html.haml
rails_execution-0.1.4 app/views/rails_execution/tasks/_form_scripts.html.haml
rails_execution-0.1.2 app/views/rails_execution/tasks/_form_scripts.html.haml