cms/app-client/app/controllers/application.js
changeset 338 4a3899b6a7ed
parent 254 a7cf2887e993
child 339 766af1228b05
--- a/cms/app-client/app/controllers/application.js	Sat Oct 15 20:02:09 2016 +0530
+++ b/cms/app-client/app/controllers/application.js	Sun Oct 16 22:23:31 2016 +0530
@@ -22,7 +22,9 @@
 
     filter: Ember.inject.service(),
     setFilter: Ember.observer('discourse', 'language', 'location', 'theme', function(sender, key) {
-        this.get('filter').set(key, this.get(key));
+        if(this.get('filter').get(key) !== this.get(key)) {
+            this.get('filter').set(key, this.get(key));    
+        }
     }),
     filterObserver: Ember.observer('filter.discourse', 'filter.language', 'filter.location', 'filter.theme', function(sender, key) {
         key = key.split('.').pop();