Allow media upload on previz mode
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
oSpot.pageInit = function(asHash) {
|
||||
var asProject = self.vars(['projects', self.vars('default_project_codename')]);
|
||||
self.tmp('status-box', $('#status'));
|
||||
if(asProject.mode == self.consts.modes.blog) {
|
||||
if(asProject.editable) {
|
||||
$('#fileupload')
|
||||
.attr('data-url', self.getActionLink('upload'))
|
||||
.fileupload({
|
||||
@@ -36,7 +36,7 @@ oSpot.pageInit = function(asHash) {
|
||||
}
|
||||
});
|
||||
}
|
||||
else addStatus(self.lang('upload_wrong_mode', [asProject.name]), true);
|
||||
else addStatus(self.lang('upload_mode_archived', [asProject.name]), true);
|
||||
};
|
||||
|
||||
function addCommentBox(iMediaId, sThumbnailPath) {
|
||||
|
||||
Reference in New Issue
Block a user