You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ij...@apache.org on 2014/12/15 13:34:12 UTC
jena git commit: Fix for #JENA-737 - ensure that dataset management
list is refreshed after deleting a dataset
Repository: jena
Updated Branches:
refs/heads/master bb185e3b8 -> b7d814ac4
Fix for #JENA-737 - ensure that dataset management list is refreshed after deleting a dataset
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/b7d814ac
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/b7d814ac
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/b7d814ac
Branch: refs/heads/master
Commit: b7d814ac474e7c43fe49237a680968b80da560da
Parents: bb185e3
Author: Ian Dickinson <ia...@epimorphics.com>
Authored: Mon Dec 15 12:33:21 2014 +0000
Committer: Ian Dickinson <ia...@epimorphics.com>
Committed: Mon Dec 15 12:33:21 2014 +0000
----------------------------------------------------------------------
.../main/webapp/js/app/views/dataset-management.js | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/b7d814ac/jena-fuseki2/src/main/webapp/js/app/views/dataset-management.js
----------------------------------------------------------------------
diff --git a/jena-fuseki2/src/main/webapp/js/app/views/dataset-management.js b/jena-fuseki2/src/main/webapp/js/app/views/dataset-management.js
index 7f5e7d8..b4405dd 100644
--- a/jena-fuseki2/src/main/webapp/js/app/views/dataset-management.js
+++ b/jena-fuseki2/src/main/webapp/js/app/views/dataset-management.js
@@ -14,11 +14,11 @@ define(
this.listenTo( this.model, "change", this.onModelChange, this );
- fui.vent.on( "action.delete.confirm", this.onConfirmRemoveDataset );
- fui.vent.on( "action.backup.confirm", this.onConfirmBackupDataset );
+ fui.vent.on( "action.delete.confirm", this.onConfirmRemoveDataset, this );
+ fui.vent.on( "action.backup.confirm", this.onConfirmBackupDataset, this );
- fui.vent.on( "task.status", this.onTaskStatus );
- fui.vent.on( "task.failed", this.onTaskFailed );
+ fui.vent.on( "task.status", this.onTaskStatus, this );
+ fui.vent.on( "task.failed", this.onTaskFailed, this );
},
template: _.template( datasetManagementViewTpl ),
@@ -86,8 +86,10 @@ define(
var dsId = elem.data( "ds-id" );
var eventId = elem.data( "event-id" );
- fui.vent.trigger( eventId, dsId );
this.ui.actionConfirmModal.modal( 'hide' );
+ _.delay( function() {
+ fui.vent.trigger( eventId, dsId );
+ }, 100 );
},
/** User has confirmed that the dataset can be deleted */
@@ -102,8 +104,9 @@ define(
.error( function( jqxhr, msg, err ) {self.onDatasetRemoveFail( jqxhr, msg, err, dsId );} );
},
+ /** Callback after successfully removing a dataset */
onDatasetRemoveSuccess: function( data, dsId ) {
- console.log( "deleted dataset" );
+ this.model.loadServerDescription();
},
/** Removing the dataset did not work: notify the user */