Revision 3e7aeb5a snf-cyclades-app/synnefo/ui/static/snf/js/models.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js
1909 1909
        },
1910 1910
        
1911 1911
        get_images_for_type: function(type) {
1912
            if (this['get_{0}_images'.format(type)]) {
1913
                return this['get_{0}_images'.format(type)]();
1912
            var method = 'get_{0}_images'.format(type.replace("-", "_"));
1913
            console.log("filtering using", method);
1914
            if (this[method]) {
1915
                return this[method]();
1914 1916
            }
1915

  
1916 1917
            return this.active();
1917 1918
        },
1918 1919

  

Also available in: Unified diff