Skip to content

Commit 02f9873

Browse files
authored
Merge pull request joni2back#209 from liul/master
Contextmenu positioning problem.
2 parents 5ee9468 + c9b0a1b commit 02f9873

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
menu.hide().css({
2929
left: e.pageX,
3030
top: e.pageY
31-
}).show();
31+
}).appendTo('body').show();
3232
e.preventDefault();
3333
});
3434

src/js/services/filenavigator.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
if (code == 404) {
2222
this.error = 'Error 404 - Backend bridge is not working, please check the ajax response.';
2323
}
24+
if (code == 200) {
25+
this.error = '';
26+
}
2427
if (!this.error && data.result && data.result.error) {
2528
this.error = data.result.error;
2629
}
@@ -144,4 +147,4 @@
144147

145148
return FileNavigator;
146149
}]);
147-
})(angular);
150+
})(angular);

0 commit comments

Comments
 (0)