app/controllers/ops_controller/settings/zones.rb
# AJAX driven routine to check for changes in ANY field on the user form
AJAX driven routine to check for changes in ANY field on the user form
AJAX driven routine to check for changes in ANY field on the user form
def zone_field_changed
    return unless load_edit("zone_edit__#{params[:id]}", "replace_cell__explorer")
    zone_get_form_vars
    session[:changed] = @changed = @edit[:new] != @edit[:current]
    render :update do |page|
      page << javascript_prologue
      if @refresh_div
        page.replace(@refresh_div, :partial => @refresh_partial,
                                   :locals  => {:type => "zones", :action_url => 'zone_field_changed'})
      end
      page << javascript_for_miq_button_visibility(@changed)
    end
  end
def zone_field_changed return unless load_edit ( "zone_edit__#{params[:id]}" , "replace_cell__explorer" ) zone_get_form_vars session [ :changed ] = @changed = @edit [ :new ] != @edit [ :current ] render :update do | page | page << javascript_prologue if @refresh_div page . replace ( @refresh_div , :partial => @refresh_partial , :locals => { :type => "zones" , :action_url => 'zone_field_changed' } ) end page << javascript_for_miq_button_visibility ( @changed ) end end
AJAX driven routine to check for changes in ANY field on the user form
AJAX driven routine to check for changes in ANY field on the user form