| Summary | Permissions Window - Save and Close |
| Queue | Horde Framework Packages |
| Queue Version | FRAMEWORK_3 |
| Type | Enhancement |
| State | Resolved |
| Priority | 1. Low |
| Owners | |
| Requester | webmgr (at) muskingum (dot) edu |
| Created | 08/17/2006 (7148 days ago) |
| Due | |
| Updated | 11/21/2006 (7052 days ago) |
| Assigned | |
| Resolved | 11/21/2006 (7052 days ago) |
| Milestone | |
| Patch | No |
State ⇒ Resolved
window again and again if you want to add more than one user/group.
State ⇒ Accepted
window again and again if you want to add more than one user/group.
State ⇒ Feedback
$share->setPermission($perm, false);
$share->save();
---> Here
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Permissions Window - Save and Close
Queue ⇒ Horde Framework Packages
State ⇒ New
2.1.2 Attendees page, I have added a Save and Finish button on the
Permissions dialog as well.
I apologize, I have no idea (but would love to learn) how to work with
the patch files, so I will just post my code changes as follows:
In "services/shares/edit.php" go to line 229 and add:
if (Util::getFormData('addNewClose')) {
Util::closeWindowJS();
exit;
}
It should appear directly between these two lines:
$share->setPermission($perm, false);
---> Here
$share->save();
In "templates/shares/edit.inc go to Line 217 where it should say:
<input type="submit" class="button" value="<?php printf(_("Save
%s"), htmlspecialchars($share->get('name'))) ?>" />
Add the following code immediately after:
<input type="submit" class="button" name="addNewClose"
value="<?php echo htmlspecialchars(_("Save and Finish")) ?>" />
If anyone has a better implementation, I'd love to hear it, otherwise
this would make a nice enhancement.