Add tree refresh when create/delete/rename file
This commit is contained in:
parent
913cef9caf
commit
dd717e331c
|
@ -163,6 +163,7 @@ $(function(){
|
||||||
success: function(data){
|
success: function(data){
|
||||||
data = data.split("|");
|
data = data.split("|");
|
||||||
alertBox(data[1], data[0]);
|
alertBox(data[1], data[0]);
|
||||||
|
$("#files").jstree("refresh");
|
||||||
},
|
},
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
alertBox(LANG['AJAXERROR'],'danger');
|
alertBox(LANG['AJAXERROR'],'danger');
|
||||||
|
@ -185,6 +186,7 @@ $(function(){
|
||||||
success: function(data){
|
success: function(data){
|
||||||
data = data.split("|");
|
data = data.split("|");
|
||||||
alertBox(data[1], data[0]);
|
alertBox(data[1], data[0]);
|
||||||
|
$("#files").jstree("refresh");
|
||||||
},
|
},
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
alertBox(LANG['AJAXERROR'],'danger');
|
alertBox(LANG['AJAXERROR'],'danger');
|
||||||
|
@ -213,6 +215,7 @@ $(function(){
|
||||||
success: function(data){
|
success: function(data){
|
||||||
data = data.split("|");
|
data = data.split("|");
|
||||||
alertBox(data[1], data[0]);
|
alertBox(data[1], data[0]);
|
||||||
|
$("#files").jstree("refresh");
|
||||||
},
|
},
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||||
alertBox(LANG['AJAXERROR'],'danger');
|
alertBox(LANG['AJAXERROR'],'danger');
|
||||||
|
|
Loading…
Reference in New Issue