Skip to content

Commit

Permalink
Import cleanup and documentation for dataset-li-edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Sep 17, 2018
1 parent 037ddfe commit 96593cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/galaxy/scripts/mvc/dataset/dataset-li-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import ANNOTATIONS from "mvc/annotation";
import faIconButton from "ui/fa-icon-button";
import BASE_MVC from "mvc/base-mvc";
import _l from "utils/localization";
import * as _ from "underscore";

/* global Galaxy */
/* global $ */

//==============================================================================
var _super = DATASET_LI.DatasetListItemView;
Expand Down Expand Up @@ -393,7 +397,7 @@ var DatasetListItemEdit = _super.extend(

/** listener for item purge (in the messages section) */
_clickPurgeLink: function(ev) {
if (confirm(_l("This will permanently remove the data in your dataset. Are you sure?"))) {
if (window.confirm(_l("This will permanently remove the data in your dataset. Are you sure?"))) {
this.model.purge();
}
return false;
Expand Down

0 comments on commit 96593cb

Please sign in to comment.