diff options
Diffstat (limited to 'plugins/CoreHome/javascripts/broadcast.js')
-rw-r--r-- | plugins/CoreHome/javascripts/broadcast.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js index a58868261f..4b9a8f21ed 100644 --- a/plugins/CoreHome/javascripts/broadcast.js +++ b/plugins/CoreHome/javascripts/broadcast.js @@ -315,10 +315,15 @@ var broadcast = { if (!currentSearchStr) { currentSearchStr = '?'; } - + var oldUrl = currentSearchStr + currentHashStr; for (var i = 0; i < params_vals.length; i++) { + + if(params_vals[i].length == 0) { + continue; // updating with empty string would destroy some values + } + // update both the current search query and hash string currentSearchStr = broadcast.updateParamValue(params_vals[i], currentSearchStr); |