Commit aed30742 authored by murban's avatar murban
Browse files

Give a red text warning in the browser for not allowed access to folders -...

Give a red text warning in the browser for not allowed access to folders - instead of a alert(warning)
parent 6e410949
......@@ -25,3 +25,9 @@
vertical-align: middle;
width: 19px;
}
.file-warning
{
text-align: center;
background-color: red;
}
......@@ -45,18 +45,22 @@ var Symbolview = Class.extend({
"type": "d"
};
var folderup = _this.makeIcon(folderupData);
_this.owner.view.mainContainer.append(folderup);
if (data.filelist[0].warning) {
var warning = $('<div/>', {
text: $.Helpers.strFormat('Warning: {0} ', data.filelist[0].warning)
}).addClass("file-warning");
_this.owner.view.mainContainer.append(warning)
_this.owner.view.mainContainer.append(folderup);
} else {
_this.owner.view.mainContainer.append(folderup);
$.each(data.filelist, function(i, file) {
if (file.warning) {
alert(file.warning)
} else {
$.each(data.filelist, function(i, file) {
var contentdiv = _this.makeIcon(file);
};
// owner.view.mainContainer.isotope('insert', contentdiv);
_this.owner.view.mainContainer.append(contentdiv);
});
// owner.view.mainContainer.isotope('insert', contentdiv);
_this.owner.view.mainContainer.append(contentdiv);
});
};
// return $.Helpers.strFormat('<u>Content of \'{0}\':</u><br /><br />{1}', this.workflow.path, content);
// return contentContainer;
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment