Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_mail
Commits
660cbcad
Commit
660cbcad
authored
Feb 21, 2017
by
Torsten Oppermann
Browse files
[TASK] adding language labels in js. streamlined js
parent
9e14e924
Changes
6
Hide whitespace changes
Inline
Side-by-side
Resources/Private/Language/de.locallang.xlf
View file @
660cbcad
...
...
@@ -89,6 +89,14 @@
<source>
Language (Reloads the page):
</source>
<target>
Sprache (lädt die Seite neu):
</target>
</trans-unit>
<trans-unit
id=
"backend.send_mail_again"
approved=
"yes"
>
<source>
Send this E-Mail again ?
</source>
<target>
Diese E-Mail nochmals versenden ?
</target>
</trans-unit>
<trans-unit
id=
"backend.send_mail_manually"
approved=
"yes"
>
<source>
Send this E-Mail now ?
</source>
<target>
Diese E-Mail jetzt versenden ?
</target>
</trans-unit>
<trans-unit
id=
"backend.send_test"
approved=
"yes"
>
<source>
Send Preview Mail
</source>
<target>
Sende Vorschau-Mail
</target>
...
...
Resources/Private/Language/locallang.xlf
View file @
660cbcad
...
...
@@ -69,6 +69,12 @@
<trans-unit
id=
"backend.select_language"
>
<source>
Language (Reloads the page):
</source>
</trans-unit>
<trans-unit
id=
"backend.send_mail_again"
>
<source>
Send this E-Mail again ?
</source>
</trans-unit>
<trans-unit
id=
"backend.send_mail_manually"
>
<source>
Send this E-Mail now ?
</source>
</trans-unit>
<trans-unit
id=
"backend.send_test"
>
<source>
Send Preview Mail
</source>
</trans-unit>
...
...
Resources/Private/Layouts/Default.html
View file @
660cbcad
{namespace sgm=SGalinski\SgMail\ViewHelpers}
<f:be.container
enableClickMenu=
"FALSE"
loadExtJs=
"FALSE"
includeCssFiles=
"{0: '{f:uri.resource(path: \'StyleSheets/backend.css\')}'}"
>
<sgm:addJavaScriptFile
javaScriptFile=
"{f:uri.resource(path: 'Scripts/Template.js')}"
/>
<sgm:addJavaScriptFile
javaScriptFile=
"{f:uri.resource(path: 'Scripts/Backend.js')}"
/>
<sgm:inlineLanguageLabels
labels=
"backend.delete_template"
/>
<sgm:inlineLanguageLabels
labels=
"backend.delete_template
, backend.send_mail_manually, backend.send_mail_again
"
/>
<div
class=
"module"
data-module-id=
""
data-module-name=
""
>
<div
class=
"module-docheader t3js-module-docheader"
>
<div
class=
"module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation"
>
...
...
Resources/Private/Templates/Queue/Index.html
View file @
660cbcad
...
...
@@ -47,10 +47,10 @@
<td>
<f:if
condition=
"{mail.sent} == '0'"
>
<f:then>
<f:link.action
class=
"btn btn-primary"
controller=
"Queue"
action=
"sendMail"
arguments=
"{uid: mail.uid}"
>
Send Now
</f:link.action>
<f:link.action
class=
"btn
-send-now btn
btn-primary"
controller=
"Queue"
action=
"sendMail"
arguments=
"{uid: mail.uid}"
>
Send Now
</f:link.action>
</f:then>
<f:else>
<f:link.action
class=
"btn btn-warning"
controller=
"Queue"
action=
"sendMail"
arguments=
"{uid: mail.uid}"
>
Send Again
</f:link.action>
<f:link.action
class=
"btn
-resend btn
btn-warning"
controller=
"Queue"
action=
"sendMail"
arguments=
"{uid: mail.uid}"
>
Send Again
</f:link.action>
</f:else>
</f:if>
</td>
...
...
Resources/Public/Scripts/Backend.js
View file @
660cbcad
(
function
(
$
)
{
function
resetTemplateListener
(
_event
)
{
_event
.
preventDefault
();
var
confirm
=
SG
.
lang
.
SgMail
[
'
backend.delete_template
'
];
if
(
window
.
confirm
(
confirm
))
{
window
.
location
=
$
(
_event
.
currentTarget
).
attr
(
'
href
'
);
}
}
function
sendMailListener
(
_event
)
{
_event
.
preventDefault
();
var
confirm
=
SG
.
lang
.
SgMail
[
'
backend.send_mail_manually
'
];
if
(
window
.
confirm
(
confirm
))
{
window
.
location
=
$
(
_event
.
currentTarget
).
attr
(
'
href
'
);
}
}
function
resendMailListener
(
_event
)
{
_event
.
preventDefault
();
var
confirm
=
SG
.
lang
.
SgMail
[
'
backend.send_mail_again
'
];
if
(
window
.
confirm
(
confirm
))
{
window
.
location
=
$
(
_event
.
currentTarget
).
attr
(
'
href
'
);
}
}
$
(
document
).
ready
(
function
()
{
$
(
'
.reset-btn
'
).
on
(
'
click
'
,
resetTemplateListener
);
$
(
'
.btn-send-now
'
).
on
(
'
click
'
,
sendMailListener
);
$
(
'
.btn-resend
'
).
on
(
'
click
'
,
resendMailListener
);
});
})
(
TYPO3
.
jQuery
);
Resources/Public/Scripts/Template.js
deleted
100644 → 0
View file @
9e14e924
(
function
(
$
)
{
function
resetTemplateListener
(
_event
)
{
_event
.
preventDefault
();
var
confirm
=
SG
.
lang
.
SgMail
[
'
backend.delete_template
'
];
if
(
window
.
confirm
(
confirm
))
{
window
.
location
=
$
(
_event
.
currentTarget
).
attr
(
'
href
'
);
}
}
$
(
document
).
ready
(
function
()
{
$
(
'
.reset-btn
'
).
on
(
'
click
'
,
resetTemplateListener
);
});
})
(
TYPO3
.
jQuery
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment