Browse Source

Change some CSS so that delete links look like links

Getty Ritter 3 years ago
parent
commit
3a9648b27b
2 changed files with 7 additions and 4 deletions
  1. 2 2
      static/lc.js
  2. 5 2
      static/main.css

+ 2 - 2
static/lc.js

@@ -6,8 +6,8 @@ function confirmDelete(url, id) {
     let link = $(`#delete_${id}`);
     let confirm = link.append(
         `<span class="deleteconfirm" id="confirm_${id}">Are you sure?
-           <a id="do_delete_${id}">yes</a>
-           <a id="cancel_delete_${id}">no</a>
+           <a id="do_delete_${id}" class="deletelink yesdelete">yes</a>
+           <a id="cancel_delete_${id}" class="deletelink">no</a>
          </span>`);
     $(document).on('click', `a#do_delete_${id}`, function() {
         var req = new XMLHttpRequest();

+ 5 - 2
static/main.css

@@ -177,14 +177,17 @@ form > div {
     margin: 0em 1em;
 }
 
+.deletelink {
+    cursor: pointer;
+}
 
 .deleteconfirm {
     padding-left: 1em;
     font-size: small;
 }
 
-.deleteconfirm a {
-    color: #f00;
+a.yesdelete {
+    color: #f00 !important;
 }
 
 .errorpane {