diff --git a/static/js/annotationDialog.js b/static/js/annotationDialog.js
index 6f9d1f226..cdede80fd 100644
--- a/static/js/annotationDialog.js
+++ b/static/js/annotationDialog.js
@@ -35,7 +35,7 @@ pandora.ui.annotationDialog = function(layer) {
})
]
),
- text: Ox._('To add or edit {0}, ' + (
+ content: Ox._('To add or edit {0}, ' + (
isEditor
? 'please sign up or sign in.'
: 'just switch to the editor.'
diff --git a/static/js/contactForm.js b/static/js/contactForm.js
index fc3bfd9fa..57afb94de 100644
--- a/static/js/contactForm.js
+++ b/static/js/contactForm.js
@@ -121,8 +121,8 @@ pandora.ui.contactForm = function() {
}
})
],
+ content: Ox._('Thanks for your message!
We will get back to you as soon as possible.'),
keys: {enter: 'close', escape: 'close'},
- text: Ox._('Thanks for your message!
We will get back to you as soon as possible.'),
title: Ox._('Message Sent')
})
.open();
diff --git a/static/js/deleteDocumentDialog.js b/static/js/deleteDocumentDialog.js
index 07eec4e9f..482482f40 100644
--- a/static/js/deleteDocumentDialog.js
+++ b/static/js/deleteDocumentDialog.js
@@ -25,8 +25,8 @@ pandora.ui.deleteDocumentDialog = function(file, callback) {
}
})
],
+ content: Ox._('Are you sure you want to delete the document "{0}"?', [file]),
keys: {enter: 'delete', escape: 'keep'},
- text: Ox._('Are you sure you want to delete the document "{0}"?', [file]),
title: Ox._('Delete Document')
});
diff --git a/static/js/deleteItemDialog.js b/static/js/deleteItemDialog.js
index cf2d45951..65d7ccdfe 100644
--- a/static/js/deleteItemDialog.js
+++ b/static/js/deleteItemDialog.js
@@ -28,10 +28,10 @@ pandora.ui.deleteItemDialog = function(item) {
}
})
],
- keys: {enter: 'delete', escape: 'keep'},
- text: Ox._('Are you sure you want to delete the {0} "{1}"?'
+ content: Ox._('Are you sure you want to delete the {0} "{1}"?'
+ '
All data will be removed.',
[Ox._(pandora.site.itemName.singular), item.title]),
+ keys: {enter: 'delete', escape: 'keep'},
title: Ox._('Delete {0}', [Ox._(pandora.site.itemName.singular)])
});
diff --git a/static/js/deleteListDialog.js b/static/js/deleteListDialog.js
index f5451989b..cd7b631db 100644
--- a/static/js/deleteListDialog.js
+++ b/static/js/deleteListDialog.js
@@ -50,9 +50,9 @@ pandora.ui.deleteListDialog = function(list) {
}
})
],
- keys: {enter: 'delete', escape: 'keep'},
- text: Ox._('Are you sure you want to delete the {0} "{1}"?',
+ content: Ox._('Are you sure you want to delete the {0} "{1}"?',
[folderItem.toLowerCase(), listData.name]),
+ keys: {enter: 'delete', escape: 'keep'},
title: Ox._('Delete {0}', [folderItem])
});
diff --git a/static/js/errorDialog.js b/static/js/errorDialog.js
index eb659fb43..019ec83d7 100644
--- a/static/js/errorDialog.js
+++ b/static/js/errorDialog.js
@@ -24,8 +24,8 @@ pandora.ui.errorDialog = function(data) {
}
})
],
+ content: Ox._('Sorry, you have made an unauthorized request.'),
keys: {enter: 'close', escape: 'close'},
- text: Ox._('Sorry, you have made an unauthorized request.'),
title: Ox.toTitleCase(data.status.text)
})
.addClass('OxErrorDialog')
@@ -62,12 +62,12 @@ pandora.ui.errorDialog = function(data) {
}
})
]),
- keys: {enter: 'close', escape: 'close'},
- text: Ox._('Sorry, a server {0}'
+ content: Ox._('Sorry, a server {0}'
+ ' occured while handling your request.'
+ ' To help us find out what went wrong,'
+ ' you may want to report this error to an administrator.'
+ ' Otherwise, please try again later.', [error]),
+ keys: {enter: 'close', escape: 'close'},
title: Ox._('Server {0}', [Ox.toTitleCase(error)])
})
.addClass('OxErrorDialog')
diff --git a/static/js/folders.js b/static/js/folders.js
index 600a08194..d928368a3 100644
--- a/static/js/folders.js
+++ b/static/js/folders.js
@@ -371,7 +371,7 @@ pandora.ui.folders = function(section) {
}
})
],
- text: text,
+ content: text,
title: title
}).open();
}
diff --git a/static/js/iconDialog.js b/static/js/iconDialog.js
index d02d6689b..8a8728dfc 100644
--- a/static/js/iconDialog.js
+++ b/static/js/iconDialog.js
@@ -4,9 +4,9 @@ pandora.ui.iconDialog = function(options) {
var options = Ox.extend({
closeButton: false,
+ content: '',
height: 128,
keys: null,
- text: '',
title: '',
width: 368,
}, options),
@@ -21,10 +21,13 @@ pandora.ui.iconDialog = function(options) {
.css({position: 'absolute', left: '16px', top: '16px', width: '64px', height: '64px'})
)
.append(
- $('