From 545eaf83de541c7e40ecc25d2c6bcb1d630c1b83 Mon Sep 17 00:00:00 2001 From: Cat Date: Wed, 14 Aug 2013 10:12:43 +0200 Subject: [PATCH] LSP: - link to mistshop in menu - LTS features visible but disabled for non LTS users - record option for livestreams in LTS - in edit protocol, the saved value for the default port is now '' (empty string) instead of 0 --- lsp/footer.html | 13 +---- lsp/functions.js | 2 +- lsp/main.js | 135 +++++++++++++++++++++++------------------------ lsp/server.html | 1 + lsp/style.css | 2 - 5 files changed, 69 insertions(+), 84 deletions(-) diff --git a/lsp/footer.html b/lsp/footer.html index 37baf7a8..2573fe54 100644 --- a/lsp/footer.html +++ b/lsp/footer.html @@ -1,23 +1,14 @@ - - - - - - -
- - diff --git a/lsp/functions.js b/lsp/functions.js index f3aad1b3..9afe2a53 100644 --- a/lsp/functions.js +++ b/lsp/functions.js @@ -346,7 +346,7 @@ delete data.statistics; // same goes for the stats //IE breaks if the console isn't opened, so keep commented when committing - //console.log('[763] SEND', data); + console.log('[763] SEND', data); $.ajax( { diff --git a/lsp/main.js b/lsp/main.js index c5ca0a75..39b3c310 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -100,6 +100,10 @@ clearInterval(pinterval); clearInterval(logsinterval); + $('#page').removeClass('LTS-only'); + $('#page').off('mouseenter mouseleave'); + removeTooltip(); + switch(name) { case 'login': @@ -522,7 +526,7 @@ $selectprotocol = $('').attr('type', 'text').attr('placeholder', 'SOURCE').attr('id', 'stream-edit-source').attr('value', sdata.source).keyup(function() - { + $('').attr('type', 'text').attr('placeholder', '/path/name.dtsc or push://host/name').attr('id', 'stream-edit-source').attr('value', sdata.source).keyup(function(){ var text = $(this).val(); - - /* - if(text.charAt(0) == '/' || text.substr(0, 7) == 'push://') - { - $('#stream-edit-preset').val(''); - $('#stream-edit-preset').hide(); - $('#stream-edit-preset-label').hide(); - }else{ - $('#stream-edit-preset').show(); - $('#stream-edit-preset-label').show(); + if(text.charAt(0) == '/'){ + $('.live-only').hide(); + $('.live-only').children('label').children('input').val(''); } - */ - - if(text.charAt(0) == '/') - { - $('#stream-edit-buffer').val(''); - $('#stream-edit-buffer').hide(); - $('#stream-edit-buffer-label').hide(); - }else{ - $('#stream-edit-buffer').show(); - $('#stream-edit-buffer-label').show(); + else{ + $('.live-only').show(); } }) ) ) - /*.append( - $('