[extensions-web] paginator.js: show all extensions if VersionValidationEnabled is disabled.



commit 687ebd1e8760ae25c35f5e764b4a529dc79d7fd5
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Mar 26 20:05:39 2017 +0400

    paginator.js: show all extensions if VersionValidationEnabled is disabled.
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=779925

 sweettooth/static/js/paginator.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/paginator.js b/sweettooth/static/js/paginator.js
index 528ab19..52bc7a7 100644
--- a/sweettooth/static/js/paginator.js
+++ b/sweettooth/static/js/paginator.js
@@ -1,6 +1,7 @@
 /*
     GNOME Shell extensions repository
     Copyright (C) 2011-2012  Jasper St. Pierre <jstpierre mecheye net>
+    Copyright (C) 2017  Yuri Konotopov <ykonotopov gnome org>
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU Affero General Public License as published by
@@ -44,10 +45,19 @@ define(['jquery', 'hashParamUtils', 'paginatorUtils', 'dbus!_', 'templates', 'jq
                        {
                                queryParams.page = 1;
                        }
+
                        if (queryParams.shell_version === undefined)
                        {
-                               queryParams.shell_version = dbusProxy.ShellVersion;
+                               if (dbusProxy.VersionValidationEnabled)
+                               {
+                                       queryParams.shell_version = dbusProxy.ShellVersion;
+                               }
+                               else
+                               {
+                                       queryParams.shell_version = 'all';
+                               }
                        }
+
                        if ($('#search_input').val())
                        {
                                queryParams.search = $('#search_input').val();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]