File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def button
76
76
javascript_flash ( :spinner_off => true )
77
77
else
78
78
options
79
- partial_replace ( @refresh_div , "vm_common/#{ @refresh_partial } " )
79
+ "$( \" # #{ h ( @refresh_div ) } \" ).replaceWith( \" #{ escape_javascript ( render ( :partial => "vm_common/#{ @refresh_partial } " ) ) } \" );" . html_safe
80
80
end
81
81
end
82
82
@@ -580,7 +580,7 @@ def remove_service
580
580
581
581
def edit
582
582
@record = find_record_with_rbac ( VmOrTemplate , params [ :id ] ) # Set the VM object
583
-
583
+
584
584
# reset @explorer if coming from explorer views
585
585
@edit ||= { }
586
586
@edit [ :explorer ] = true if params [ :action ] == "x_button" || session . fetch_path ( :edit , :explorer )
Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ def javascript_hide_if_exists(element)
42
42
"if (miqDomElementExists('#{ j_str ( element ) } ')) #{ javascript_hide ( element ) } " . html_safe
43
43
end
44
44
45
- def partial_replace ( from , partial , locals )
46
- "$(\" ##{ h ( from ) } \" ).replaceWith(\" #{ escape_javascript ( render ( :partial => partial , :locals => locals ) ) } \" );" . html_safe
47
- end
48
-
49
45
def javascript_checked ( element )
50
46
"if ($('##{ j_str ( element ) } ').prop('type') == 'checkbox') {$('##{ j_str ( element ) } ').prop('checked', true);}"
51
47
. html_safe
You can’t perform that action at this time.
0 commit comments