mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-06 18:11:55 +00:00
add code for setting original filename
This commit is contained in:
parent
f20f4d2ae2
commit
5dfd280ec5
|
@ -736,6 +736,21 @@ $(document).ready( function() {
|
|||
});
|
||||
}); /* }}} */
|
||||
|
||||
$("body").on("blur", "span.editorigname", function(e) { /* {{{ */
|
||||
e.preventDefault();
|
||||
$.post(seeddms_webroot+"op/op.Ajax.php", { command: "setoriginalname", contentid: $(this).data('content'), formtoken: $(this).data('formtoken'), name: $(this).text() })
|
||||
.done(function( data ) {
|
||||
noty({
|
||||
text: data.message,
|
||||
type: data.success ? 'success' : 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500
|
||||
});
|
||||
});
|
||||
}); /* }}} */
|
||||
|
||||
$("body").on("keypress", "span.editable", function(e) { /* {{{ */
|
||||
if(e.which == 13) {
|
||||
$(this).blur();
|
||||
|
|
|
@ -784,6 +784,21 @@ $(document).ready( function() {
|
|||
});
|
||||
}); /* }}} */
|
||||
|
||||
$("body").on("blur", "span.editorigname", function(e) { /* {{{ */
|
||||
e.preventDefault();
|
||||
$.post(seeddms_webroot+"op/op.Ajax.php", { command: "setoriginalname", contentid: $(this).data('content'), formtoken: $(this).data('formtoken'), name: $(this).text() })
|
||||
.done(function( data ) {
|
||||
noty({
|
||||
text: data.message,
|
||||
type: data.success ? 'success' : 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500
|
||||
});
|
||||
});
|
||||
}); /* }}} */
|
||||
|
||||
$("body").on("keypress", "span.editable", function(e) { /* {{{ */
|
||||
if(e.which == 13) {
|
||||
$(this).blur();
|
||||
|
|
Loading…
Reference in New Issue
Block a user