From 836faddaa70f5d00f529f32457498454c17dbd38 Mon Sep 17 00:00:00 2001 From: siddolo Date: Fri, 10 Jan 2014 00:10:35 +0100 Subject: [PATCH] Fix cookies for codeigniter compatibility Codeigniter do not admit "#" char in cookies and query strings, so, for compatibility purpose, i've changed it in "_". --- dev/jquery.jtable.core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/jquery.jtable.core.js b/dev/jquery.jtable.core.js index 62a3d95c..4689f5e4 100644 --- a/dev/jquery.jtable.core.js +++ b/dev/jquery.jtable.core.js @@ -1194,11 +1194,11 @@ var strToHash = ''; if (this.options.tableId) { - strToHash = strToHash + this.options.tableId + '#'; + strToHash = strToHash + this.options.tableId + '_'; } strToHash = strToHash + this._columnList.join('$') + '#c' + this._$table.find('thead th').length; - return 'jtable#' + simpleHash(strToHash); + return 'jtable_' + simpleHash(strToHash); }, /************************************************************************