Ticket #108 (new enhancement)
making doubleclick for non-registered users configurable
| Reported by: | JavaWoman (NilsLindenberg) | Owned by: | unassigned |
|---|---|---|---|
| Priority: | normal | Milestone: | blue-sky |
| Component: | core | Version: | 1.1.6.1 |
| Severity: | normal | Keywords: | doubleclick edit anonymus users |
| Cc: |
Description (last modified by DarTar) (diff)
There is another issue with double-click editing: while registered users can edit their preferences to use double-click editing or not, it is always on for non-registered (or not logged-in) users.
The result is that on pages that can be edited only by registered users, a double-click results in an unfriendly error message. Especially on a site that is mostly read-only for visitors this is a bad situation. The solution is to make this admin-configurable.
Add to wikka.config.php:
"doubleclickedit" => "Y", # set to "N" to disable double-click editing
and change the proposed line for the show handler above to:
<div class="page" <?php echo (((!$user && $this->config['doubleclickedit'] == "Y") || ($user['doubleclickedit'] == 'Y')) && $this->GetMethod
() == "show") ? "ondblclick=\"document.location='".$this->href("edit")."';\" " : "" ?>>
--JavaWoman
In that case, wouldn't you want new profiles to have dblclick turned off by default ? (TroelsKnakNielsen)