return to plugin edit page when plugin is saved
This commit is contained in:
parent
494c6affec
commit
20b88b8b42
@ -142,7 +142,8 @@ class PluginsController < ApplicationController
|
|||||||
|
|
||||||
if @plugin.save
|
if @plugin.save
|
||||||
@plugin.update_all_windows
|
@plugin.update_all_windows
|
||||||
redirect_to plugins_path and return
|
flash[:notice] = I18n.t(:plugin_save_message)
|
||||||
|
redirect_to edit_plugin_path(@plugin) and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -198,6 +198,7 @@ en:
|
|||||||
plugin_js: "JavaScript"
|
plugin_js: "JavaScript"
|
||||||
plugin_name: "Name"
|
plugin_name: "Name"
|
||||||
plugin_new_message: "Please select a template to use with your new plugin."
|
plugin_new_message: "Please select a template to use with your new plugin."
|
||||||
|
plugin_save_message: "Your plugin has been saved."
|
||||||
plugin_template: "Plugin Template"
|
plugin_template: "Plugin Template"
|
||||||
plugins: "Plugins"
|
plugins: "Plugins"
|
||||||
plugin_public_flag: "Make Public?"
|
plugin_public_flag: "Make Public?"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20141016143645) do
|
ActiveRecord::Schema.define(version: 20141024161555) do
|
||||||
|
|
||||||
create_table "active_admin_comments", force: true do |t|
|
create_table "active_admin_comments", force: true do |t|
|
||||||
t.string "namespace"
|
t.string "namespace"
|
||||||
@ -338,6 +338,7 @@ ActiveRecord::Schema.define(version: 20141016143645) do
|
|||||||
t.datetime "run_at"
|
t.datetime "run_at"
|
||||||
t.integer "fuzzy_seconds", default: 0
|
t.integer "fuzzy_seconds", default: 0
|
||||||
t.string "schedulable_value"
|
t.string "schedulable_value"
|
||||||
|
t.integer "schedulable_position"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "timecontrols", ["frequency", "minute", "hour", "day"], name: "index_timecontrols_on_frequency_and_minute_and_hour_and_day", using: :btree
|
add_index "timecontrols", ["frequency", "minute", "hour", "day"], name: "index_timecontrols_on_frequency_and_minute_and_hour_and_day", using: :btree
|
||||||
|
Loading…
Reference in New Issue
Block a user