From 4c9b6f2fa02d1d8cc8fcb6b3d2acc94e89fe8836 Mon Sep 17 00:00:00 2001 From: mariusbaumann Date: Sat, 3 Jan 2015 20:42:17 +0100 Subject: Some style and bug fixes + Drag and drop sort fetature on queue fixed + Capcha overlay redesigned + Add premium account window restyled + Alert messages restyled + Some other details changed --- module/web/media/js/package_ui.js | 8 ++++---- module/web/media/js/purr_static.js | 11 +++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) (limited to 'module/web/media/js') diff --git a/module/web/media/js/package_ui.js b/module/web/media/js/package_ui.js index 87694e909..384207882 100644 --- a/module/web/media/js/package_ui.js +++ b/module/web/media/js/package_ui.js @@ -49,7 +49,7 @@ var PackageUI = new Class({ clone: true, revert: true, opacity: 0.4, - handle: "#package_drag", + handle: ".package_drag", onComplete: this.saveSort.bind(this) }); @@ -218,7 +218,7 @@ var Package = new Class({ } - var html = "\n".substitute({"icon": link.icon}); + var html = "\n".substitute({"icon": link.icon}); html += "{name}
".substitute({"name": link.name}); html += "{statusmsg}{error} ".substitute({"statusmsg": link.statusmsg, "error":link.error}); html += "{format_size}".substitute({"format_size": link.format_size}); @@ -273,8 +273,8 @@ var Package = new Class({ url: '/api/restartFile/' + this, onSuccess: function() { var ele = $('file_' + this); - var imgs = ele.getElements("img"); - imgs[0].set("src", "/media/default/img/status_queue.png"); + var imgs = ele.getElements(".glyphicon"); + imgs[0].set("class", "glyphicon glyphicon-time"); var spans = ele.getElements(".child_status"); spans[1].set("html", "queued"); indicateSuccess(); diff --git a/module/web/media/js/purr_static.js b/module/web/media/js/purr_static.js index 7e0aee949..c011ad505 100644 --- a/module/web/media/js/purr_static.js +++ b/module/web/media/js/purr_static.js @@ -32,14 +32,17 @@ var Purr = new Class({ 'wrapper': { 'styles': { 'position': 'fixed', - 'z-index': '9999' + 'z-index': '9999', + 'width': '40%', + 'margin-top': '60px', }, - 'class': 'purr-wrapper' + 'class': '', }, 'alert': { - 'class': 'purr-alert', + 'class': 'alert alert-info', 'styles': { - 'opacity': '.85' + 'opacity': '.70', + 'width': '', } }, 'buttonWrapper': { -- cgit v1.2.3