1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 20:30:05 +02:00

2 Commits

Author SHA1 Message Date
s2
b841785adb 1.0.8 2019-06-12 15:53:41 +02:00
s2
9eae13612e fix lock/unlock refresh 2019-06-12 15:52:58 +02:00
3 changed files with 10 additions and 8 deletions

View File

@@ -43,16 +43,18 @@
}
if (notification.event && notification.event === 'unlock') {
$('[data-file="' + notification.file + '"].js-unlock').hide();
$('[data-file="' + notification.file + '"].js-lock').show();
let file = notification.file.replace(/\\/g, '\\\\');
$('[data-file="' + file + '"].js-unlock').hide();
$('[data-file="' + file + '"].js-lock').show();
let text = 'not locked';
$('[data-file="' + notification.file + '"]').parent().prev().text(text);
$('[data-file="' + file + '"]').parent().prev().text(text);
}
if (notification.event && notification.event === 'lock') {
$('[data-file="' + notification.file + '"].js-lock').hide();
$('[data-file="' + notification.file + '"].js-unlock').show();
let file = notification.file.replace(/\\/g, '\\\\');
$('[data-file="' + file + '"].js-lock').hide();
$('[data-file="' + file + '"].js-unlock').show();
let text = notification.data.owner.name + ' (id: ' + notification.data.id + ')';
$('[data-file="' + notification.file + '"]').parent().prev().text(text);
$('[data-file="' + file + '"]').parent().prev().text(text);
}
});

2
app/package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "gitlit-app",
"version": "1.0.7",
"version": "1.0.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "gitlit-app",
"version": "1.0.7",
"version": "1.0.8",
"description": "",
"main": "main.js",
"dependencies": {