From fc73f1525df7bef0544f069e67fcef569a4e91ef Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Sun, 8 Jul 2012 00:09:23 +0100 Subject: [PATCH] Live now moved to "/watch" --- lib/app.js | 4 ++-- public/js/spike.js | 4 ++-- views/index.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/app.js b/lib/app.js index 2b9c1ef5..9cb08e77 100644 --- a/lib/app.js +++ b/lib/app.js @@ -156,11 +156,11 @@ app.get('/:bin/latest/edit', binHandler.redirectToLatest); // Quick and easy urls for test - allows me to do /rem/last on my mobile devices app.get('/:name/last?/:quiet(quiet)?', binHandler.getLatestForUser, spike.getStream, binHandler.getBinPreview); app.get('/:name/last/edit', binHandler.getLatestForUser, binHandler.getBin); -app.get('/:name/last/live', binHandler.getLatestForUser, binHandler.getLiveEditBin); +app.get('/:name/last/watch', binHandler.getLatestForUser, binHandler.getLiveEditBin); // Edit app.get('/:bin/:rev?/edit', binHandler.getBin); -app.get('/:bin/:rev?/live', binHandler.getLiveEditBin); +app.get('/:bin/:rev?/watch', binHandler.getLiveEditBin); // Save app.post('/save', binHandler.createBin); diff --git a/public/js/spike.js b/public/js/spike.js index 6216b949..fd554fd8 100644 --- a/public/js/spike.js +++ b/public/js/spike.js @@ -152,8 +152,8 @@ function codecastStream() { } -var id = location.pathname.replace(/\/preview.*$/, '').replace(/\/edit.*$/, ''), - codecasting = location.pathname.indexOf('edit/live') !== -1; +var id = location.pathname.replace(/\/preview.*$/, '').replace(/\/edit.*$/, '').replace(/\/watch.*$/, ''), + codecasting = location.pathname.indexOf('/watch') !== -1; queue = [], msgType = '', useSS = false, diff --git a/views/index.html b/views/index.html index 50f8e006..7a54efe7 100644 --- a/views/index.html +++ b/views/index.html @@ -306,7 +306,7 @@ Include alerts, prompts & confirm boxes">Run with JS Edit the current bin - /live + /watch Follow a Code Casting session @@ -318,7 +318,7 @@ Include alerts, prompts & confirm boxes">Run with JS Edit the last edited bin for this user - /{{#home}}{{home}}{{/home}}{{^home}}[username]{{/home}}/last/live + /{{#home}}{{home}}{{/home}}{{^home}}[username]{{/home}}/last/watch Follow the Code Casting session for the latest bin for this user