reduce Amount of Caps Used in Multiple Dialogs

master
Andrew Dolgov 2 years ago
parent 0730128a97
commit 75e659ba65
  1. 4
      classes/pref/system.php
  2. 6
      js/CommonDialogs.js
  3. 2
      js/CommonFilters.js
  4. 2
      js/PrefFeedTree.js
  5. 4
      js/PrefHelpers.js
  6. 2
      js/PrefLabelTree.js
  7. 2
      js/PrefUsers.js

@ -165,7 +165,7 @@ class Pref_System extends Handler_Administrative {
$page = (int) ($_REQUEST["page"] ?? 0);
?>
<div dojoType='dijit.layout.AccordionContainer' region='center'>
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">report</i> <?= __('Event Log') ?>'>
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">report</i> <?= __('Event log') ?>'>
<?php
if (Config::get(Config::LOG_DESTINATION) == "sql") {
$this->_log_viewer($page, $severity);
@ -175,7 +175,7 @@ class Pref_System extends Handler_Administrative {
?>
</div>
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">mail</i> <?= __('Mail Configuration') ?>'>
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">mail</i> <?= __('Mail configuration') ?>'>
<div dojoType="dijit.layout.ContentPane">
<form dojoType="dijit.form.Form">

@ -16,7 +16,7 @@ const CommonDialogs = {
{op: "feeds", method: "subscribeToFeed"},
(reply) => {
const dialog = new fox.SingleUseDialog({
title: __("Subscribe to Feed"),
title: __("Subscribe to feed"),
content: `
<form onsubmit='return false'>
@ -333,7 +333,7 @@ const CommonDialogs = {
const dialog = new fox.SingleUseDialog({
id: "feedEditDlg",
title: __("Edit Feed"),
title: __("Edit feed"),
feed_title: "",
unsubscribe: function() {
if (confirm(__("Unsubscribe from %s?").replace("%s", this.feed_title))) {
@ -473,7 +473,7 @@ const CommonDialogs = {
<section>
<fieldset>
<input dojoType='dijit.form.ValidationTextBox' required='1'
placeHolder="${__("Feed Title")}"
placeHolder="${__("Feed title")}"
style='font-size : 16px; width: 500px' name='title' value="${App.escapeHtml(feed.title)}">
</fieldset>

@ -11,7 +11,7 @@ const Filters = {
const dialog = new fox.SingleUseDialog({
id: "filterEditDlg",
title: filter_id ? __("Edit Filter") : __("Create Filter"),
title: filter_id ? __("Edit filter") : __("Create new filter"),
ACTION_TAG: 4,
ACTION_SCORE: 6,
ACTION_LABEL: 7,

@ -300,7 +300,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b
try {
const dialog = new fox.SingleUseDialog({
title: __("Edit Multiple Feeds"),
title: __("Edit multiple feeds"),
/*getChildByName: function (name) {
let rv = null;
this.getChildren().forEach(

@ -56,7 +56,7 @@ const Helpers = {
Digest: {
preview: function() {
const dialog = new fox.SingleUseDialog({
title: __("Digest Preview"),
title: __("Digest preview"),
content: `
<div class='panel panel-scrollable digest-preview'>
<div class='text-center'>${__("Loading, please wait...")}</div>
@ -124,7 +124,7 @@ const Helpers = {
edit: function() {
const dialog = new fox.SingleUseDialog({
id: "profileEditDlg",
title: __("Settings Profiles"),
title: __("Manage profiles"),
getSelectedProfiles: function () {
return Tables.getSelected("pref-profiles-list");
},

@ -68,7 +68,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
const dialog = new fox.SingleUseDialog({
id: "labelEditDlg",
title: __("Label Editor"),
title: __("Edit label"),
style: "width: 650px",
setLabelColor: function (id, fg, bg) {

@ -36,7 +36,7 @@ const Users = {
const dialog = new fox.SingleUseDialog({
id: "userEditDlg",
title: __("User Editor"),
title: __("Edit user"),
execute: function () {
if (this.validate()) {
Notify.progress("Saving data...", true);

Loading…
Cancel
Save