Skip to content

Commit

Permalink
Merge pull request #1133 from ajaxorg/hotfix/1128
Browse files Browse the repository at this point in the history
Determines the type of tree node being deleted
  • Loading branch information
Zef Hemel committed Mar 29, 2012
2 parents 0349d74 + 20cef2e commit f1e514f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/core/util.js
Expand Up @@ -43,7 +43,7 @@ exports.question = function(title, header, msg, onyes, onyestoall, onno, onnotoa
exports.removeInteractive = function (amlNode) {
if (window.cloud9config.readonly == true)
return false;

if (amlNode.confirmed == undefined)
amlNode.confirmed = false;

Expand All @@ -52,9 +52,10 @@ exports.removeInteractive = function (amlNode) {

function confirm(file) {
var name = file.getAttribute("name");
var type = file.getAttribute("type");
require("core/util").question(
"Remove file?",
"You are about to remove the file " + name,
"Confirm Remove",
"You are about to remove the " + type + " " + name,
"Do you want continue? (This change cannot be undone)",
function () { // Yes
amlNode.confirmed = true;
Expand Down

0 comments on commit f1e514f

Please sign in to comment.