mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 21:00:04 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
b841785adb | |||
9eae13612e |
@@ -43,16 +43,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (notification.event && notification.event === 'unlock') {
|
if (notification.event && notification.event === 'unlock') {
|
||||||
$('[data-file="' + notification.file + '"].js-unlock').hide();
|
let file = notification.file.replace(/\\/g, '\\\\');
|
||||||
$('[data-file="' + notification.file + '"].js-lock').show();
|
$('[data-file="' + file + '"].js-unlock').hide();
|
||||||
|
$('[data-file="' + file + '"].js-lock').show();
|
||||||
let text = 'not locked';
|
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') {
|
if (notification.event && notification.event === 'lock') {
|
||||||
$('[data-file="' + notification.file + '"].js-lock').hide();
|
let file = notification.file.replace(/\\/g, '\\\\');
|
||||||
$('[data-file="' + notification.file + '"].js-unlock').show();
|
$('[data-file="' + file + '"].js-lock').hide();
|
||||||
|
$('[data-file="' + file + '"].js-unlock').show();
|
||||||
let text = notification.data.owner.name + ' (id: ' + notification.data.id + ')';
|
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
2
app/package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlit-app",
|
"name": "gitlit-app",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlit-app",
|
"name": "gitlit-app",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Reference in New Issue
Block a user