Project

General

Profile

« Previous | Next » 

Revision 5c9dc2dc

Added by Ohad Levy about 5 years ago

fixes #26554 - move class_edit to webpack.

this is a pure move + lint, no code changes introduced.

View differences:

app/helpers/application_helper.rb
def remove_link_to_function(text, options)
options.delete_if { |key, value| !options[key].to_s } # otherwise error during template render
title = (_("Click to remove %s") % options[:"data-class-name"])
link_to_function(text, "remove_puppet_class(this)", options.merge!(:'data-original-title' => title))
link_to_function(text, "tfm.classEditor.removePuppetClass(this)", options.merge!(:'data-original-title' => title))
end
def link_to_add_puppetclass(klass, type)
......
end
def add_link_to_function(text, options)
link_to_function(text, "add_puppet_class(this)",
link_to_function(text, "tfm.classEditor.addPuppetClass(this)",
options.merge(:'data-original-title' => _("Click to add %s") % options[:"data-class-name"]))
end

Also available in: Unified diff