Browse
For agents
About
Polylang
/
3.8.10
Polylang
v3.8.10
Switch version
3.8.10
3.8.9
3.8.8
3.8.7
3.8.6
3.8.5
3.8.4
3.8.3
2.7
2.7.0.1
2.7.1
2.7.2
2.7.3
2.7.4
2.8
2.8.1
2.8.2
2.8.3
2.8.4
2.9
2.9.1
2.9.2
3.0
3.0.1
3.0.2
All 234 releases
Overview
Code
polylang
/
js
/
build
/
media.js
media.js
in Polylang 3.8.10, at js/build/media.js
21 lines
433 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
/**
2
*
@
package
Polylang
3
*/
4
5
/**
6
* Media list table
7
* When clicking on attach link, filters find post list per media language
8
*/
9
jQuery
(
10
function
(
$
)
{
11
$
.
ajaxPrefilter
(
12
function
(
options
,
originalOptions
,
jqXHR
)
{
13
if
(
'
string
'
===
typeof
options
.
data
&&
-
1
!==
options
.
data
.
indexOf
(
'
action=find_posts
'
)
)
{
14
options
.
data
=
'
pll_post_id=
'
+
$
(
'
#affected
'
)
.
val
(
)
+
'
&
'
+
options
.
data
;
15
}
16
}
17
)
;
18
}
19
)
;
20
21