Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

16 nr comment editor fix #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/javascripts/hot_buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ jQuery(document).ready(function() {
var include_comment = button.config.get('include_comment').evalJSON();
if (include_comment) {
//Fix to make this plugin compatible with CKEditor plugin
if (CKEDITOR && CKEDITOR.instances["issue_notes"]) {
if (typeof CKEDITOR != "undefined" && CKEDITOR && CKEDITOR.instances["issue_notes"]) {
//destroy CKEDITOR so it won't replace notes text with his empty value on submit
try {
CKEDITOR.instances["issue_notes"].destroy()
Expand Down
5 changes: 0 additions & 5 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
object_to_prepare = Rails.configuration
end

object_to_prepare.to_prepare do
require File.dirname(__FILE__) + '/lib/issues_controller_patch.rb'
IssuesController.send(:include, IssueHotButtons::IssuesControllerPatch)
end

class Hooks < Redmine::Hook::ViewListener
render_on :view_issues_show_details_bottom,
:partial => 'hot_buttons/assets',
Expand Down
48 changes: 0 additions & 48 deletions lib/issues_controller_patch.rb

This file was deleted.