Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d7eef400
authored
2019-05-09 10:20:51 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ee
1 parent
019fac03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletions
com/Notifications/views/create.php
com/Notifications/views/create.php
View file @
d7eef40
...
...
@@ -28,7 +28,7 @@ function getInputFormValues($validation, $name) {
</div>
<?php
endif
;
?>
<form
enctype=
"multipart/form-data"
method=
"post"
action=
"/wp-admin/admin.php?page=notifications-create-new"
>
<form
enctype=
"multipart/form-data"
method=
"post"
id=
"notifications-create-new"
action=
"/wp-admin/admin.php?page=notifications-create-new"
>
<input
type=
"hidden"
name=
"_POSTED_"
value=
"yes"
/>
...
...
@@ -291,6 +291,40 @@ function getInputFormValues($validation, $name) {
<script>
jQuery
(
document
).
ready
(
function
(
$
)
{
var
codeCleaned
=
false
;
$
(
"#notifications-create-new"
).
on
(
"submit"
,
function
(
e
){
if
(
!
codeCleaned
)
{
e
.
preventDefault
();
$
(
'#fr_html_ifr'
).
contents
().
find
(
'td:last-child'
).
each
(
function
(){
$
(
this
).
addClass
(
'tdlast-child'
);
});
$
(
'#fr_html_ifr'
).
contents
().
find
(
'tr:last-child'
).
each
(
function
(){
$
(
this
).
addClass
(
'trlast-child'
);
});
$
(
'#en_html_ifr'
).
contents
().
find
(
'td:last-child'
).
each
(
function
(){
$
(
this
).
addClass
(
'tdlast-child'
);
});
$
(
'#en_html_ifr'
).
contents
().
find
(
'tr:last-child'
).
each
(
function
(){
$
(
this
).
addClass
(
'trlast-child'
);
});
codeCleaned
=
true
;
// $(this).trigger('submit');
}
});
$
(
'#tabs'
).
tabs
();
// Update system message type clone when changing the message type
...
...
@@ -371,6 +405,7 @@ function getInputFormValues($validation, $name) {
jQuery
(
'.scheduled_sendto'
).
hide
();
jQuery
(
'.trigger-extended'
).
show
();
}
else
if
(
type
==
"newsletter"
)
{
jQuery
(
"#tabs"
).
append
(
'<input type="hidden" id="email_style" name="email_style" class="wide-input-field" />'
);
jQuery
(
"#email_style"
).
val
(
'newsletter'
);
...
...
Please
register
or
sign in
to post a comment