Skip to content

Commit

Permalink
Removed unnecessary BG_COLORS and bg_color_changed
Browse files Browse the repository at this point in the history
  • Loading branch information
europ committed Aug 2, 2017
1 parent b2fcdb8 commit ccf14d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
13 changes: 0 additions & 13 deletions app/controllers/configuration_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,6 @@ def nav_style_changed
end
end

# AJAX driven routine for background color selection
def bg_color_changed
# ui1 bgcolor changed
@edit = session[:edit]
@edit[:new][:display][:bg_color] = params[:bg_color] # Capture the new setting
session[:changed] = (@edit[:new] != @edit[:current])
@changed = session[:changed]
render :update do |page|
page << javascript_prologue
page.replace 'tab_div', :partial => "ui_1"
end
end

def update
if params["save"]
get_form_vars if @tabform != "ui_3"
Expand Down
11 changes: 0 additions & 11 deletions app/helpers/ui_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ module UiConstants
"Vmware RSS Feeds" => "http://vmware.simplefeed.net/rss?f=995b0290-01dc-11dc-3032-0019bbc54f6f"
}

# Screen background color choices
BG_COLORS = [
"#c00", # First entry is the default
"#ff8a00",
"#ffe400",
"#6b9130",
"#0c7ad7",
"#000"
]

# Navigation Styles
NAV_STYLES = [
"vertical", # First entry is the default
Expand Down Expand Up @@ -180,7 +170,6 @@ module UiConstants
:reporttheme => "MIQ",
:quad_truncate => "m",
:theme => "red", # Luminescent Blue
:bg_color => BG_COLORS.first, # Background color
:taskbartext => true, # Show button text on taskbar
:vmcompare => "Compressed", # Start VM compare and drift in compressed mode
:hostcompare => "Compressed", # Start Host compare in compressed mode
Expand Down

0 comments on commit ccf14d3

Please sign in to comment.