-
getId() == $thisUser->getId()} onmouseover="
- {if is_null($user->getAvatarPhoto()) == false && $user->getAvatarPhoto()->getURL() != "$serverUrl/assets/packages/static/openvk/img/camera_200.png"}
- _avatarDelete.style.backgroundColor='rgba(0, 0, 0, 0.7)';
- deleteButton.style.opacity='100%';
- {/if}
- avatarChange.style.backgroundColor='rgba(0, 0, 0, 0.7)';
- avatarChange.style.opacity='100%';
- "
- onmouseleave="
- {if is_null($user->getAvatarPhoto()) == false && $user->getAvatarPhoto()->getURL() != "$serverUrl/assets/packages/static/openvk/img/camera_200.png"}
- _avatarDelete.style.backgroundColor='rgba(0, 0, 0, 0)';
- deleteButton.style.opacity='0%';
- {/if}
- avatarChange.style.backgroundColor='rgba(0, 0, 0, 0)';
- avatarChange.style.opacity='0%';
- //pizdec
- "{/if}>
-
-
-
-
- 
-
-
-
-
-
-
-
-
-
+
+
diff --git a/Web/static/img/delete.png b/Web/static/img/delete.png
deleted file mode 100644
index 352df253..00000000
Binary files a/Web/static/img/delete.png and /dev/null differ
diff --git a/Web/static/img/miniature.png b/Web/static/img/miniature.png
deleted file mode 100644
index 6eeb6277..00000000
Binary files a/Web/static/img/miniature.png and /dev/null differ
diff --git a/Web/static/img/upload.png b/Web/static/img/upload.png
deleted file mode 100644
index e6280bc4..00000000
Binary files a/Web/static/img/upload.png and /dev/null differ
diff --git a/Web/static/js/openvk.cls.js b/Web/static/js/openvk.cls.js
index 571223a0..0ecc385e 100644
--- a/Web/static/js/openvk.cls.js
+++ b/Web/static/js/openvk.cls.js
@@ -65,6 +65,7 @@ function toggleMenu(id) {
});
}
}
+
document.addEventListener("DOMContentLoaded", function() { //BEGIN
u("#_photoDelete").on("click", function(e) {
@@ -87,66 +88,7 @@ document.addEventListener("DOMContentLoaded", function() { //BEGIN
return e.preventDefault();
});
- u("#_avatarDelete").on("click", function(e) {
- var formHtml = "
";
- u("body").append(formHtml);
-
- MessageBox(tr('prevention'), tr('delete_photo'), [
- tr('delete'),
- tr('close')
- ], [
- (function() {
- u("#tmpPhDelF").nodes[0].submit();
- }),
- (function() {
- u("#tmpPhDelF").remove();
- }),
- ]);
-
- return e.preventDefault();
- });
- u("#_newPicture").on("click", function(e) {
- MessageBox(tr('new_photo'),
- "
", [
- tr('upload_button'),
- tr('close')
- ], [
- (function() {
- u("#tmpPhDelF").nodes[0].submit();
- }),
- (function() {
- u("#tmpPhDelF").remove();
- }),
- ]);
-
- return e.preventDefault();
- });
- u("#_newAvatarPicture").on("click", function(e) {
- MessageBox(tr('new_photo'),
- "
", [
- tr('upload_button'),
- tr('close')
- ], [
- (function() {
- u("#tmpPhDelF").nodes[0].submit();
- }),
- (function() {
- u("#tmpPhDelF").remove();
- }),
- ]);
-
- return e.preventDefault();
- });
+
/* @rem-pai why this func wasn't named as "#_deleteDialog"? It looks universal IMO */
u("#_noteDelete").on("click", function(e) {