app/controllers/ops_controller/settings.rb
# AJAX driven routine to delete a classification entry
AJAX driven routine to delete a classification entry
AJAX driven routine to delete a classification entry
def forest_delete
    forest_get_form_vars
    idx = nil
    @edit[:new][:authentication][:user_proxies].each_with_index do |f, i|
      idx = i if f[:ldaphost] == params[:ldaphost_id]
    end
    @edit[:new][:authentication][:user_proxies].delete_at(idx) unless idx.nil?
    @changed = (@edit[:new] != @edit[:current])
    render :update do |page|
      page << javascript_prologue
      page.replace("flash_msg_div", :partial => "layouts/flash_msg")
      page << javascript_for_miq_button_visibility(@changed)
      page.replace("forest_entries_div", :partial => "ldap_forest_entries", :locals => {:entry => nil, :edit => false})
    end
  end
def forest_delete forest_get_form_vars idx = nil @edit [ :new ] [ :authentication ] [ :user_proxies ] . each_with_index do | f , i | idx = i if f [ :ldaphost ] == params [ :ldaphost_id ] end @edit [ :new ] [ :authentication ] [ :user_proxies ] . delete_at ( idx ) unless idx . nil? @changed = ( @edit [ :new ] != @edit [ :current ] ) render :update do | page | page << javascript_prologue page . replace ( "flash_msg_div" , :partial => "layouts/flash_msg" ) page << javascript_for_miq_button_visibility ( @changed ) page . replace ( "forest_entries_div" , :partial => "ldap_forest_entries" , :locals => { :entry => nil , :edit => false } ) end end
AJAX driven routine to delete a classification entry
AJAX driven routine to delete a classification entry