Jump to content

Todo list annoyance


erwin123

Recommended Posts

I've had several times now that when I try to open een todo list item from the mainpage and I click slightly in the wrong spot and the item disappears.

 

This is really dangerous as these items are important (like a domain that failed to renew).

 

I would love to see that the option of removing these items (its some sort of checkbox but they disappear immediatly) is lost from the mainpage or at the very least that there is a dialog confirming the delete.

Link to comment
Share on other sites

I never noticed that before! :roll:

 

the quick fix would be to modify /modules/widgets/ToDo.php and remove the checkbox from the code...

 

            $output .= '
               <div class="item">
                   <div class="due">Due ' . $duedate . '</div>
                   <div>
                       <label>
                           <input type="checkbox" value="' . $id . '"> '
                           . '<a href="todolist.php?action=edit&id=' . $id . '">'
                           . $title
                           . '</a>'
                           . $status
                           . $assigned . '
                       </label>
                   </div>
               </div>';

to...

            $output .= '
               <div class="item">
                   <div class="due">Due ' . $duedate . '</div>
                   <div>
                       <label>'
                           . '<a href="todolist.php?action=edit&id=' . $id . '">'
                           . $title
                           . '</a>'
                           . $status
                           . $assigned . '
                       </label>
                   </div>
               </div>';

clicking on the link should now take you to the specific ToDo page - where you would need to change the status to "Completed" to remove it from the dashboard.

 

Wmu6T2U.png

 

... though bear in mind that the WHMCS updater might replace the widget during a future WHMCS update and restore the old code. :roll:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated