aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-23 16:54:21 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-23 16:54:21 +0100
commit7003b5c91ab61ad7ce12d242fb1ce209d27e07b6 (patch)
tree22cfb7cd5b3a23be9cc80a10473b16caa4a50d1e
parentf9e5d7f72783081083f1a6d5753474ae9ca34579 (diff)
delay display of photo delete button
Stops it appearing on the screen before the photo and looking odd
-rw-r--r--src/js/views/photo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/views/photo.js b/src/js/views/photo.js
index 6592904..745a7dd 100644
--- a/src/js/views/photo.js
+++ b/src/js/views/photo.js
@@ -19,11 +19,11 @@
beforeDisplay: function() {
this.fixPageHeight();
+ this.$('#id_del_photo_button').hide();
if ( this.model.get('file') ) {
$('#id_photo_button').parents('.ui-btn').hide();
$('#id_existing').parents('.ui-btn').hide();
- } else {
- this.$('#id_del_photo_button').hide();
+ window.setTimeout( function() { $('#id_del_photo_button').show(); }, 250 );
}
},