[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [ocs-webserver/dev] application/modules/default/views/scripts/user: pling excluded
From: Ronald von Schlegell <null () kde ! org>
Date: 2018-05-31 18:29:14
Message-ID: E1fOSK2-0001nY-GG () code ! kde ! org
[Download RAW message or body]
Git commit 2131ac08f688fa773c823947f49fca7c0453b116 by Ronald von Schlegell.
Committed on 31/05/2018 at 18:29.
Pushed by ronaldv into branch 'dev'.
pling excluded
M +37 -0 application/modules/default/views/scripts/user/aboutme.phtml
https://commits.kde.org/ocs-webserver/2131ac08f688fa773c823947f49fca7c0453b116
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