mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 15:10:19 -06:00
Feedback form: code optimization
This commit is contained in:
@@ -195,9 +195,8 @@ function form_submit(url, params, tab, diagnostics) {
|
||||
var reply = "<h2 class='center red-text'><?=_('Error')?></h2><p class='center'><img src='<?=$feedback?>error.png'><br><?=$sorry.'. '.$again?>.</p>";
|
||||
$('#reply_panel').html(reply).fadeIn('fast');
|
||||
} else {
|
||||
data.message = data.message || '';
|
||||
var name = tab.substr(1).toLowerCase();
|
||||
var reply = "<h2 class='center green-text'><?=_('Thank You')?></h2><p class='center'><img src='<?=$feedback?>"+name+".png'><br>"+data.message+"</p>";
|
||||
var reply = "<h2 class='center green-text'><?=_('Thank You')?></h2><p class='center'><img src='<?=$feedback?>"+name+".png'><br>"+(data.message||'')+"</p>";
|
||||
$('#reply_panel').html(reply).fadeIn('fast');
|
||||
}
|
||||
}).fail(function(jqXHR, textStatus, errorThrown){
|
||||
|
||||
Reference in New Issue
Block a user