bring lockview to menu items, slightly change the way /lockview is called

This commit is contained in:
Mario Vavti
2015-04-21 22:45:54 +02:00
parent 0bd9fe0b11
commit 21704ecb93
9 changed files with 46 additions and 35 deletions

View File

@@ -884,8 +884,8 @@ function getPosition(e) {
return cursor;
}
function lockview(event, id) {
$.get('lockview/' + id, function(data) {
function lockview(type, id) {
$.get('lockview/' + type + '/' + id, function(data) {
$('#panel-' + id).html(data);
});
}