Remove js that crept back in, added another error string.
This commit is contained in:
parent
0cbd72e092
commit
fe38827a76
@ -279,6 +279,8 @@ class NewnoticeAction extends Action
|
|||||||
} else {
|
} else {
|
||||||
$this->clientError(_('There was a database error while saving your file. Please try again.'));
|
$this->clientError(_('There was a database error while saving your file. Please try again.'));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$this->clientError(_('File could not be moved to destination directory.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
24
js/util.js
24
js/util.js
@ -28,30 +28,6 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('a.attachment').click(function() {$().jOverlay({url: $('address .url')[0].href+'/attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; });
|
|
||||||
$("a.thumbnail").hover(
|
|
||||||
function() {
|
|
||||||
var anchor = $(this);
|
|
||||||
$("a.thumbnail").children('img').remove();
|
|
||||||
|
|
||||||
setTimeout(function() {
|
|
||||||
anchor.closest(".entry-title").addClass('ov');
|
|
||||||
$.get($('address .url')[0].href+'/attachment/' + (anchor.attr('id').substring('attachment'.length + 1)) + '/thumbnail', null, function(data) {
|
|
||||||
anchor.append(data);
|
|
||||||
});
|
|
||||||
}, 250);
|
|
||||||
|
|
||||||
setTimeout(function() {
|
|
||||||
anchor.children('img').remove();
|
|
||||||
anchor.closest(".entry-title").removeClass('ov');
|
|
||||||
}, 3000);
|
|
||||||
},
|
|
||||||
function() {
|
|
||||||
$(this).children('img').remove();
|
|
||||||
$(this).closest(".entry-title").removeClass('ov');
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// count character on keyup
|
// count character on keyup
|
||||||
function counter(event){
|
function counter(event){
|
||||||
var maxLength = 140;
|
var maxLength = 140;
|
||||||
|
@ -83,7 +83,7 @@ class AttachmentList extends Widget
|
|||||||
$atts = new File;
|
$atts = new File;
|
||||||
$att = $atts->getAttachments($this->notice->id);
|
$att = $atts->getAttachments($this->notice->id);
|
||||||
if (empty($att)) return 0;
|
if (empty($att)) return 0;
|
||||||
$this->out->elementStart('dl', array('id' =>'attachment'));
|
$this->out->elementStart('dl', array('id' =>'attachments'));
|
||||||
$this->out->element('dt', null, _('Attachments'));
|
$this->out->element('dt', null, _('Attachments'));
|
||||||
$this->out->elementStart('dd');
|
$this->out->elementStart('dd');
|
||||||
$this->out->elementStart('ol', array('class' => 'attachments'));
|
$this->out->elementStart('ol', array('class' => 'attachments'));
|
||||||
|
Loading…
Reference in New Issue
Block a user