126:bd9e4ed25eb5
Anton Shestakov <av6@dwimlabs.net>, Thu, 11 Aug 2016 14:00:28 +0800
pipelines: hitting a supervisor bug, let's see if this helps It looks like an image problem, let's try another distro. (https://github.com/Supervisor/supervisor/issues/121)

next change 148:7a236aa969f8
previous change 8:39ac2486b9d3

static/js/framework/router.js

Permissions: -rw-r--r--

Other formats: Feeds:
var Router = Backbone.Router.extend({
routes: {
'': 'randomize',
':workspace': 'setWorkspace'
},
makeRandomString: function(length) {
return _.map(_.range(length), function() {
return (Math.random()*16|0).toString(16);
}).join('');
},
randomize: function() {
var randomString = this.makeRandomString(8);
this.navigate(randomString, {trigger: true, replace: true});
},
setWorkspace: function(workspace) {
fruitbar.trigger('workspace', workspace);
}
});