From d25d7cac08572ec31fd4c5ca03e3eb6543a70f1e Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sat, 18 Jan 2014 18:08:59 +0200 Subject: [PATCH] media groups are now sorted by name descending --- src/handlers.py | 1 - src/utils.py | 2 +- static/js/main.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers.py b/src/handlers.py index 94adaff..ee5a68c 100644 --- a/src/handlers.py +++ b/src/handlers.py @@ -16,7 +16,6 @@ # along with this program. If not, see . import base64 -import functools import json import logging import os diff --git a/src/utils.py b/src/utils.py index 3064596..32dca30 100644 --- a/src/utils.py +++ b/src/utils.py @@ -216,4 +216,4 @@ def make_camera_url(config): port = config.get('port', config.get('@port', '')) device_uri = config.get('device_uri', config.get('videodevice', remote.make_camera_uri(config.get('@remote_camera_id')))) - return proto + '://' + host + (str(port) + ':' if port else '') + device_uri + return proto + '://' + host + (':' + str(port) if port else '') + device_uri diff --git a/static/js/main.js b/static/js/main.js index 5ffbf59..0a63be2 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1485,6 +1485,7 @@ function runMediaDialog(cameraId, mediaType) { var keys = Object.keys(groups); keys.sort(); + keys.reverse(); /* add a temporary div to compute 3em in px */ var tempDiv = $('
'); -- 2.39.5