diff --git a/application/views/contesting/add.php b/application/views/contesting/add.php
index 840b205ff..10c9a46be 100644
--- a/application/views/contesting/add.php
+++ b/application/views/contesting/add.php
@@ -22,9 +22,9 @@
- | Name |
- Adif mode |
- Active |
+ |
+ |
+ |
|
|
|
@@ -35,19 +35,19 @@
|
|
- '> |
+ '> |
Deactivate";
+ echo "";
} else {
- echo "";
+ echo "";
};?>
|
- " class="btn btn-outline-primary btn-sm"> Edit
+ " class="btn btn-outline-primary btn-sm">
|
- Delete
+
|
@@ -57,9 +57,9 @@
-
-
-
+
+
+
diff --git a/application/views/contesting/create.php b/application/views/contesting/create.php
index 4a0bd5ee3..2a89db382 100644
--- a/application/views/contesting/create.php
+++ b/application/views/contesting/create.php
@@ -21,18 +21,18 @@
diff --git a/assets/js/sections/contestingnames.js b/assets/js/sections/contestingnames.js
index 88bc63f65..cd5bff49c 100644
--- a/assets/js/sections/contestingnames.js
+++ b/assets/js/sections/contestingnames.js
@@ -68,8 +68,8 @@ function deactivateContest(contestid) {
type: 'post',
data: { 'id': contestid },
success: function (html) {
- $(".contest_" + contestid).text('not active');
- $('.btn_' + contestid).html('Activate');
+ $(`.contest_${contestid}`).text("");
+ $('.btn_' + contestid).html("");
$('.btn_' + contestid).attr('onclick', 'activateContest(' + contestid + ')')
}
});
@@ -81,8 +81,8 @@ function activateContest(contestid) {
type: 'post',
data: { 'id': contestid },
success: function (html) {
- $('.contest_' + contestid).text('active');
- $('.btn_' + contestid).html('Deactivate');
+ $('.contest_' + contestid).text("");
+ $('.btn_' + contestid).html("");
$('.btn_' + contestid).attr('onclick', 'deactivateContest(' + contestid + ')')
}
});