mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-06 07:34:26 +01:00
committed by
Nicolas Dorier
parent
7208e63155
commit
a4b61f8aab
@@ -45,7 +45,7 @@ $(document).ready(function(){
|
||||
|
||||
// Only continue if price and title is provided
|
||||
if (obj.price && obj.title) {
|
||||
if (description) {
|
||||
if (description != null) {
|
||||
obj.description = products.escape(description);
|
||||
}
|
||||
if (image) {
|
||||
|
||||
@@ -68,7 +68,7 @@ Products.prototype.loadFromTemplate = function() {
|
||||
'title': title,
|
||||
'price': price,
|
||||
'image': image || null,
|
||||
'description': description || null,
|
||||
'description': description || '',
|
||||
'custom': Boolean(custom),
|
||||
'inventory': isNaN(inventory)? null: inventory
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user