Revision 1fc7640d snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_model_views.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_model_views.js
61 61
        
62 62
        force_reset_before_fetch: true,
63 63
        auto_append_actions: true,
64
        fetch_params: {},
64 65

  
65 66
        initialize: function(options) {
66 67
            views.CollectionView.__super__.initialize.apply(this, arguments);
......
85 86
        },
86 87
        
87 88
        update_models: function() {
88
            this.collection.fetch({success:this.handle_reset});
89
            var params = {};
90
            _.extend(params, this.fetch_params);
91
            params['success'] = this.handle_reset;
92
            this.collection.fetch(params);
89 93
        },
90 94
        
91 95
        init_handlers: function() {
......
337 341
                    var form_error = resp_error != "" ? 
338 342
                                this.create_failed_msg + " ({0})".format(resp_error) : 
339 343
                                this.create_failed_msg;
340

  
341
                    this.show_form_errors({'': form_error || 'Entry submition failed'})
344
                    this.show_form_errors({'': form_error || this.submit_failed_msg || 'Entry submition failed'})
342 345
                }, this),
343 346

  
344 347
                complete: _.bind(function(){

Also available in: Unified diff