summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/assets/javascripts/ui/editor/WallpaperPicker.js9
-rwxr-xr-xpublic/assets/stylesheets/app.css14
2 files changed, 23 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/editor/WallpaperPicker.js b/public/assets/javascripts/ui/editor/WallpaperPicker.js
index 6e0d5c6..3b6168e 100644
--- a/public/assets/javascripts/ui/editor/WallpaperPicker.js
+++ b/public/assets/javascripts/ui/editor/WallpaperPicker.js
@@ -7,6 +7,7 @@ var WallpaperPicker = UploadView.extend({
uploadAction: "/api/media/upload",
events: {
+ "contextmenu": 'cancel',
"mousedown": 'stopPropagation',
"click .swatch": 'pick',
"click .wallpaperRemove": 'remove',
@@ -120,6 +121,14 @@ var WallpaperPicker = UploadView.extend({
$(".floatingSwatch").addClass("scissors")
}
},
+
+ cancel: function(e){
+ if (Scenery.nextWallpaper) {
+ e.preventDefault()
+ Scenery.nextWallpaper = null
+ app.tube('cancel-wallpaper')
+ }
+ },
follow: function(e, wallpaper, icon){
icon = icon || wallpaper
diff --git a/public/assets/stylesheets/app.css b/public/assets/stylesheets/app.css
index 894483d..e5b10e3 100755
--- a/public/assets/stylesheets/app.css
+++ b/public/assets/stylesheets/app.css
@@ -1702,6 +1702,20 @@ input[type="range"]::-webkit-slider-thumb {
.wallpaperResizeControls span {
cursor: pointer;
}
+.floodMessage {
+ display: none;
+ animation: flicker 0.2s infinite;
+ color: black;
+ margin: 5px 5px 49px 5px;
+ font-size: 13px;
+ font-weight: 300;
+ text-align: center;
+}
+@keyframes flicker {
+ 49% { color: black; }
+ 50% { color: red; }
+ 100% { color: red; }
+}
#color-picker {
position: relative;