diff -r 3cdfcdd71077 -r e17155b3086a www/js/profile_styles.js --- a/www/js/profile_styles.js Fri Sep 13 15:54:23 2019 +0200 +++ b/www/js/profile_styles.js Fri Sep 13 16:15:51 2019 +0200 @@ -44,11 +44,9 @@ $(document).ready(function () { - var dataRecord = {}; - var url = "includes/db_profile_styles.php"; - - // prepare the data - var source = { + var dataRecord = {}, + url = 'includes/db_profile_styles.php', + source = { datatype: "json", cache: false, datafields: [ @@ -88,8 +86,8 @@ data: data, type: "POST", success: function (data, status, xhr) { - // delete command is executed. commit(true); + location.reload( true ); }, error: function (jqXHR, textStatus, errorThrown) { commit(false); @@ -106,6 +104,7 @@ type: "POST", success: function (data, status, xhr) { commit(true); + location.reload( true ); }, error: function(jqXHR, textStatus, errorThrown) { commit(false); @@ -121,8 +120,8 @@ data: data, type: "POST", success: function (data, status, xhr) { - // update command is executed. commit(true); + location.reload( true ); }, error: function(jqXHR, textStatus, errorThrown) { commit(false); @@ -170,8 +169,8 @@ $("#ingredients").jqxInput({ theme: theme, width: 800, height: 23 }); $("#examples").jqxInput({ theme: theme, width: 800, height: 48 }); - var dataAdapter = new $.jqx.dataAdapter(source); - var editrow = -1; + var dataAdapter = new $.jqx.dataAdapter(source), + editrow = -1; // initialize jqxGrid $("#jqxgrid").jqxGrid({ width: 1280, @@ -180,9 +179,10 @@ theme: theme, showstatusbar: true, renderstatusbar: function (statusbar) { - var container = $("
"); - var addButton = $("