Merge pull request #3038 from mnoorenberghe/fix_function_save

Fix saving function changes
This commit is contained in:
Isaac Connor 2020-09-10 11:52:38 -04:00 committed by GitHub
commit 2e5a897355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -186,8 +186,9 @@ function initPage() {
var mid = form.elements['mid'].value;
var newFunc = $j('#newFunction').val();
var newEnabled = $j('#newEnabled').is(':checked') ? 1 : 0;
$j.getJSON(thisUrl + '?view=function&action=function&mid='+mid+'&newFunction='+newFunc+'&newEnabled='+newEnabled);
window.location.reload(true);
$j.getJSON(thisUrl + '?view=function&action=function&mid='+mid+'&newFunction='+newFunc+'&newEnabled='+newEnabled, function() {
window.location.reload(true);
});
});
}