From ebb3b562ca34d03246e39a7d6c4b232b55af376f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20O=CC=88zkorkmaz?= Date: Sat, 3 Jan 2015 02:03:46 +0100 Subject: [PATCH] Convert json properties to UCFirst. --- dev/jquery.jtable.core.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/jquery.jtable.core.js b/dev/jquery.jtable.core.js index a859986b..c8bd2488 100644 --- a/dev/jquery.jtable.core.js +++ b/dev/jquery.jtable.core.js @@ -401,6 +401,11 @@ /* Performs an AJAX call to reload data of the table. *************************************************************************/ _reloadTable: function (completeCallback) { + for(var key in data) { + data[key.charAt(0).toUpperCase() + key.slice(1).toLowerCase()] = data[key]; + delete(data[key]); + } + var self = this; var completeReload = function(data) {