[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [ocs-webserver] application/modules/default/views/scripts/user: pling excluded
From: Ronald von Schlegell <null () kde ! org>
Date: 2018-05-31 18:32:23
Message-ID: E1fOSN5-0005QW-9W () code ! kde ! org
[Download RAW message or body]
Git commit 73f32d6d5aa1b29869c40368c4a1655684da2273 by Ronald von Schlegell.
Committed on 31/05/2018 at 18:32.
Pushed by ronaldv into branch 'master'.
pling excluded
M +37 -0 application/modules/default/views/scripts/user/aboutme.phtml
https://commits.kde.org/ocs-webserver/73f32d6d5aa1b29869c40368c4a1655684da2273
diff --git a/application/modules/default/views/scripts/user/aboutme.phtml \
b/application/modules/default/views/scripts/user/aboutme.phtml index \
0b508b49..d5683f5d 100644
--- a/application/modules/default/views/scripts/user/aboutme.phtml
+++ b/application/modules/default/views/scripts/user/aboutme.phtml
@@ -154,6 +154,10 @@ $isSupporter = $this->stat['donationIssupporter'];
<a id="linktohive" target="_blank" \
href="http://cp1.hive01.com/usermanager/search.php?username=<?= \
$this->member->username ?>">link to hive</a>
<a id="delete-this" \
href="/backend/user/delete?member_id=<?= $this->member->member_id ?>">delete user</a> \
</span> + <br>
+ <span class="page-views" style="color: red;">
+ <input type="checkbox" \
id="pling-excluded-checkbox" <?php echo $this->member->pling_excluded == 1 ? ' \
checked=\'checked\' ' : ''; ?> /> user-pling-excluded + \
</span> <script>
$('#delete-this').on('click', function (event) {
@@ -172,6 +176,39 @@ $isSupporter = $this->stat['donationIssupporter'];
return false;
});
+
+
+ $('#pling-excluded-checkbox').on('click', \
function (event) { + event.stopPropagation();
+ var status = 0;
+ if (this.checked) {
+ status = 1;
+ } else {
+ status = 0;
+ }
+
+ var target = \
"/backend/member/doexclude?member_id=<?= $this->member->member_id ?>&pling_excluded=" \
+ status; + $.ajax({
+ url: target,
+ success: function (results) {
+ if (status == 0) {
+ alert('Member was successfully \
included for plinging'); + \
$('#pling-excluded-checkbox').prop("checked", false); +
+ } else {
+ alert('Member was successfully \
excluded for plinging'); + \
$('#pling-excluded-checkbox').prop("checked", true); +
+ }
+
+ },
+ error: function () {
+ alert('Service is temporarily \
unavailable.'); + }
+ });
+
+ return false;
+ });
</script>
</div>
<?php endif; ?>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic