From 161c8517b274cd5aefef1b6420284cb838daf0df Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 11 May 2013 18:15:48 -0400 Subject: [PATCH] Change icons for next and temp, update help.html --- package.json | 2 +- www/assets/js/callbacks.js | 3 ++- www/assets/js/functions.js | 7 ++++--- www/help.html | 23 ++++++++++++++++++----- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c5da52a2..08714c3e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "1.6.2", + "version": "1.6.3", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index 8d56afa6..e925c8fb 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -510,7 +510,8 @@ Callbacks = { var li = $("#queue").children()[data.idx]; var buttons = $(li).find(".qe_btn"); if(buttons.length == 5) { - $(buttons[4]).text(data.temp ? "Untemp" : "Temp"); + $(buttons[4]).removeClass("btn-danger btn-success"); + $(buttons[4]).addClass(data.temp ? "btn-success" : "btn-danger"); } if(data.temp) { $(li).addClass("alert alert-error"); diff --git a/www/assets/js/functions.js b/www/assets/js/functions.js index d54bc18b..390becd3 100644 --- a/www/assets/js/functions.js +++ b/www/assets/js/functions.js @@ -313,7 +313,7 @@ function addQueueButtons(li) { if(CHANNELOPTS.qopen_allow_qnext || fullperms) { var btnNext = $(" -

Below is an example of an entry in the playlist. Please note the control buttons only appear if you are a moderator or if the queue is unlocked. The button with vertical arrows is for moving videos in the playlist. Click and hold the button and drag the mouse up and down to move the video in the playlist. The red "X" button will remove the video from the playlist. The green play button will jump the playlist to that video. The "Next" button will move the video so that it plays after the current video. +

Below is an example of an entry in the playlist. Please note the control buttons only appear if you are a moderator or if the queue is unlocked. The button with vertical arrows is for moving videos in the playlist. Click and hold the button and drag the mouse up and down to move the video in the playlist. The red "X" button will remove the video from the playlist. The green play button will jump the playlist to that video. The arrow button will move the video to the next position after the currently playing video. The flag button will toggle whether the video is temporary (temporary videos are auto-removed after playing once).

  • @@ -150,7 +150,8 @@ - + +
    Title
    00:00
    @@ -232,11 +233,13 @@

    Chat Filters

    - Moderators can apply various filters to chat messages using Regular Expressions. The first column contains a button to remove filters. The second is the regular expression to match in the message. The third is the replacement text, and the last is a checkbox for toggling the filter on/off. Regular Expressions are given in Javascript syntax, and by default have the "g" flag set. You can set custom flags by adding them at the end of the regex after a slash; for example js/ig matches "js", "JS", "jS", and "Js". The following example replaces money amounts of the form "$amount" to "amount dollars":


    + Moderators can apply various filters to chat messages using Regular Expressions. The first column contains a button to remove filters. The second is a name to identify the filter. The third is the regular expression to match in the message. The fourth is the regular expression flags (g = replace all, i = not case sensitive, gi is the combination of the two, etc). The fifth is the replacement text, and the last is a checkbox for toggling the filter on/off. Regular Expressions are given in Javascript syntax. The following example replaces money amounts of the form "$amount" to "amount dollars":


    + + @@ -247,9 +250,15 @@ + + @@ -283,7 +292,11 @@ - + + + + +
    Name RegexFlags Replacement Active
    + The dollar filter + \$([0-9\.]+) + g + $1 dollars
    User0-11
    Guest0