mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
add javascript for movefolder and movedocument buttons
This commit is contained in:
parent
01f95b201e
commit
2e1af54098
|
@ -140,6 +140,50 @@ $(document).ready( function() {
|
|||
}
|
||||
);
|
||||
});
|
||||
|
||||
$('a.movefolder').click(function(ev){
|
||||
ev.preventDefault();
|
||||
attr_source = $(ev.currentTarget).attr('source');
|
||||
attr_dest = $(ev.currentTarget).attr('dest');
|
||||
attr_msg = $(ev.currentTarget).attr('msg');
|
||||
$.get('../op/op.Ajax.php',
|
||||
{ command: 'movefolder', folderid: attr_source, targetfolderid: attr_dest },
|
||||
function(data) {
|
||||
console.log(data);
|
||||
noty({
|
||||
text: data.msg,
|
||||
type: data.success ? 'success' : 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500,
|
||||
});
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
$('a.movedocument').click(function(ev){
|
||||
ev.preventDefault();
|
||||
attr_source = $(ev.currentTarget).attr('source');
|
||||
attr_dest = $(ev.currentTarget).attr('dest');
|
||||
attr_msg = $(ev.currentTarget).attr('msg');
|
||||
$.get('../op/op.Ajax.php',
|
||||
{ command: 'movedocument', docid: attr_source, targetfolderid: attr_dest },
|
||||
function(data) {
|
||||
console.log(data);
|
||||
noty({
|
||||
text: data.msg,
|
||||
type: data.success ? 'success' : 'error',
|
||||
dismissQueue: true,
|
||||
layout: 'topRight',
|
||||
theme: 'defaultTheme',
|
||||
timeout: 1500,
|
||||
});
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
function allowDrop(ev) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user