From d0f1e37bcb146ce63bc335cbe9ec686dc5f7ae51 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 19 Dec 2013 16:54:54 +0530 Subject: [PATCH 1/3] [fix] Browser's LocalStorage initialisation --- public/js/wn/app.js | 2 +- public/js/wn/assets.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/js/wn/app.js b/public/js/wn/app.js index 5d413217e9..a419f5b85d 100644 --- a/public/js/wn/app.js +++ b/public/js/wn/app.js @@ -92,7 +92,7 @@ wn.Application = Class.extend({ if(wn.boot.metadata_version != localStorage.metadata_version) { localStorage.clear(); console.log("Cleared Cache - New Metadata"); - localStorage.metadata_version = wn.boot.metadata_version; + wn.assets.init_local_storage(); } }, diff --git a/public/js/wn/assets.js b/public/js/wn/assets.js index 6f2b28c04e..8c3ad8aef3 100644 --- a/public/js/wn/assets.js +++ b/public/js/wn/assets.js @@ -41,8 +41,14 @@ wn.assets = { localStorage.clear(); console.log("Cleared localstorage"); } + + wn.assets.init_local_storage(); + }, + + init_local_storage: function() { localStorage._last_load = new Date(); localStorage._version_number = window._version_number; + if(wn.boot) localStorage.metadata_version = wn.boot.metadata_version; }, // check if the asset exists in From f886e0082e9b139ebef95fa36c52ee434dee9037 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Dec 2013 17:08:49 +0530 Subject: [PATCH 2/3] set filters in query report through route options --- public/js/wn/views/query_report.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/js/wn/views/query_report.js b/public/js/wn/views/query_report.js index d85c98f7b9..5905665734 100644 --- a/public/js/wn/views/query_report.js +++ b/public/js/wn/views/query_report.js @@ -124,12 +124,23 @@ wn.views.QueryReport = Class.extend({ if(df.get_query) f.get_query = df.get_query; } }); + this.set_route_filters() this.set_filters_by_name(); }, clear_filters: function() { this.filters = []; this.appframe.parent.find('.appframe-form .filters').remove(); }, + set_route_filters: function() { + var me = this; + if(wn.route_options) { + $.each(this.filters || [], function(i, f) { + if(wn.route_options[f.df.fieldname]!=null) + f.set_input(wn.route_options[f.df.fieldname]); + }); + } + wn.route_options = null; + }, set_filters_by_name: function() { this.filters_by_name = {}; From 1ef54e062c0e389406b3a7d3de36d3ad8eba8596 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Mon, 23 Dec 2013 18:01:18 +0600 Subject: [PATCH 3/3] bumped to version 3.3.2 --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index ba05e55908..366e693fb5 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "base_template": "lib/website/templates/base.html", - "framework_version": "3.3.1", + "framework_version": "3.3.2", "modules": { "Calendar": { "color": "#2980b9",