Project

General

Profile

« Previous | Next » 

Revision 8b98d8e0

Added by Ondřej Pražák over 8 years ago

Fixes #1477 - Hostgroup no longer looses puppet classes when environment changed during hostgroup editing

View differences:

app/helpers/application_helper.rb
end
def remove_link_to_function(text, options)
link_to_function(text, "remove_puppet_class(this)",
options.merge(:'data-original-title'=>_("Click to remove %s") % options[:"data-class-name"]))
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))
end
def link_to_add_puppetclass(klass, type)

Also available in: Unified diff