Browse Source

Product images, ask user on image deleting

Vova Tkach 5 years ago
parent
commit
7a3ac7e636
2 changed files with 3 additions and 0 deletions
  1. 3 0
      assets/cp.scripts.js
  2. 0 0
      assets/cp.scripts.js.go

+ 3 - 0
assets/cp.scripts.js

@@ -3884,6 +3884,9 @@
 			},
 
 			ShopProductsDeleteImage: function(button, product_id, filename) {
+				if(!confirm('Are you sure want to delete image?')) {
+					return;
+				}
 				$.ajax({
 					type: "POST",
 					url: '/cp/',

File diff suppressed because it is too large
+ 0 - 0
assets/cp.scripts.js.go


Some files were not shown because too many files changed in this diff