Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-management
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John
esi-management
Commits
9bd2d955
Commit
9bd2d955
authored
Dec 27, 2016
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update news form
parent
6a0fa12f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
esi-management-admin.js
...t/plugins/esi-management/admin/js/esi-management-admin.js
+4
-1
No files found.
wp-content/plugins/esi-management/admin/js/esi-management-admin.js
View file @
9bd2d955
...
...
@@ -251,7 +251,9 @@
$
(
".join_data_select"
).
live
(
'change'
,
function
(
el
){
var
populate
=
$
(
this
).
data
(
'populate'
);
var
option_id
=
$
(
this
).
val
();
var
option_text
=
$
(
this
).
children
(
':selected'
).
text
();
$
.
ajax
({
url
:
ajaxurl
,
type
:
'POST'
,
...
...
@@ -263,6 +265,7 @@
var
data
=
JSON
.
parse
(
response
);
$
(
populate
).
find
(
"option:gt(0)"
).
remove
();
$
(
populate
).
multiSelect
(
'addOption'
,
{
value
:
option_id
,
text
:
option_text
,
index
:
0
});
$
.
each
(
data
.
returned_data
,
function
(
i
,
d
){
$
(
populate
).
multiSelect
(
'addOption'
,
{
value
:
d
.
id
,
text
:
d
.
name
,
index
:
i
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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