Skip to content

INSANEWORKS/redmine_auto_save_drafts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Redmine Auto Save Drafts Plugin

Redmine Auto Save Drafts is a plugin for Redmine that automatically saves your input in tickets and comments, ensuring that your work is never lost due to accidental browser closures or navigation. It restores drafts seamlessly without requiring user intervention.

Features

  • Automatically saves ticket descriptions, subjects, and comments locally in the browser.
  • Restores drafts automatically without user confirmation.
  • Displays "Saved (n seconds ago)" messages dynamically to keep users informed.
  • Uses Web Storage (localStorage) for privacy and efficiency.
  • Removes saved drafts upon successful form submission.

Installation

  1. Navigate to your Redmine plugins directory:

    cd /path/to/redmine/plugins
  2. Clone the repository:

    git clone https://github.com/INSANEWORKS/redmine_auto_save_drafts.git redmine_auto_save_drafts
  3. Restart your Redmine application:

Usage

  1. Navigate to any ticket creation, editing, or commenting page in Redmine.
  2. Begin typing in the subject, description, or comment fields.
  3. Your input will be automatically saved locally every time you make changes.
  4. If you navigate away from the page and return, your unsaved draft will be automatically restored.

Supported Languages

Language Message Example
English Comment Saved (5 seconds ago)
Japanese コメント 保存済み (5秒前)
French Commentaire Enregistré (il y a 5 secondes)

Adding New Languages

To add new languages:

  1. Modify the messages object in redmine_auto_save_drafts.js.
  2. Add the appropriate translations for saved, secondsAgo, and comment.

Example:

messages.de = {
    saved: "Gespeichert",
    secondsAgo: "vor Sekunden",
    comment: "Kommentar",
};

Compatibility

  • Tested with Redmine 6.x
  • Older versions might not be fully supported.

License

This plugin is licensed under the MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published