Revision a0839230 snf-cyclades-app/synnefo/ui/static/snf/js/utils.js

b/snf-cyclades-app/synnefo/ui/static/snf/js/utils.js
283 283
        return {del: removed, add: added};
284 284
    }
285 285

  
286
    synnefo.util.open_window = function(url, name, specs) {
286
    synnefo.util.open_window = function(url, name, opts) {
287 287
        // default specs
288
        var opts = _.extend({
289
            scrollbars: 'no',
288
        opts = _.extend({
290 289
            menubar: 'no',
291 290
            toolbar: 'no',
292 291
            status: 'no',
......
300 299
            top: 0
301 300
        }, opts)
302 301
        
303
        window.open(url, name, opts);
302
        var specs = _.map(opts, function(v,k) {return k + "=" + v}).join(",");
303
        window.open(url, name, specs);
304 304
    }
305 305
    
306 306
    synnefo.util.readFileContents = function(f, cb) {

Also available in: Unified diff