def get(self):
logging.debug('listing versions')
- stable = self.get_argument('stable', default='false') == 'true'
-
- versions = update.get_all_versions(stable=stable)
+ versions = update.get_all_versions()
current_version = update.get_version()
update_version = None
if versions and update.compare_versions(versions[-1], current_version) > 0:
return motioneye.VERSION
-def get_all_versions(stable=False):
+def get_all_versions():
url = _BITBUCKET_LIST_TAGS_URL % {
'root': _BITBUCKET_ROOT_URL,
'owner': settings.REPO[0],
logging.debug('available versions: %(versions)s' % {
'versions': ', '.join(versions)})
- # stable versions are those of form x.y
- # unstable versions are of form x.y.z
- if stable:
- versions = [v for v in versions if v.count('.') == 1]
-
return sorted(versions, cmp=compare_versions)
except Exception as e:
function doUpdate() {
showModalDialog('<div class="modal-progress"></div>');
- ajax('GET', '/update/?stable=true', null, function (data) {
+ ajax('GET', '/update/', null, function (data) {
if (data.update_version == null) {
runAlertDialog('motionEye is up to date (current version: ' + data.current_version + ')');
}
nameSpan.html(cameraName);
progressImg.attr('src', staticUrl + 'img/camera-progress.gif');
+ cameraFrameDiv.click(function () {
+ doFullScreenCamera(cameraId);
+ });
+
/* insert the new camera frame at the right position,
* with respect to the camera id */
var pageContainer = $('div.page-container');
doConfigureCamera(cameraId);
});
- fullScreenButton.click(function () {
- doFullScreenCamera(cameraId);
- });
+ fullScreenButton.click(function (cameraId) {
+ return function () {
+ doFullScreenCamera(cameraId);
+ };
+ }(cameraId));
/* error and load handlers */
cameraImg.error(function () {