mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-03-04 02:37:19 +08:00
Fix naming
This commit is contained in:
parent
2c6618e793
commit
fb680596a6
2 changed files with 18 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "RainLoop Webmail",
|
||||
"short_name": "RainLoop",
|
||||
"name": "SnappyMail Webmail",
|
||||
"short_name": "SnappyMail",
|
||||
"description": "Simple, modern & fast web-based email client",
|
||||
"display": "standalone",
|
||||
"icons": [{
|
||||
|
@ -13,4 +13,4 @@
|
|||
"type": "image/png"
|
||||
}],
|
||||
"start_url": "../../../../"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
ko.bindingHandlers['visible'] = {
|
||||
'update': (element, valueAccessor) => {
|
||||
var value = ko.utils.unwrapObservable(valueAccessor());
|
||||
var isCurrentlyVisible = !(element.style.display == "none");
|
||||
if (value && !isCurrentlyVisible)
|
||||
element.style.display = "";
|
||||
else if (isCurrentlyVisible && !value)
|
||||
element.style.display = "none";
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers['hidden'] = {
|
||||
'update': (element, valueAccessor) =>
|
||||
element.hidden = !!ko.utils.unwrapObservable(valueAccessor())
|
||||
};
|
||||
ko.bindingHandlers['visible'] = {
|
||||
'update': (element, valueAccessor) => {
|
||||
var value = ko.utils.unwrapObservable(valueAccessor());
|
||||
var isCurrentlyVisible = !(element.style.display == "none");
|
||||
if (value && !isCurrentlyVisible)
|
||||
element.style.display = "";
|
||||
else if (isCurrentlyVisible && !value)
|
||||
element.style.display = "none";
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers['hidden'] = {
|
||||
'update': (element, valueAccessor) =>
|
||||
element.hidden = !!ko.utils.unwrapObservable(valueAccessor())
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue