PluginProbe ʕ •ᴥ•ʔ
Advanced Custom Fields: Extended / 0.5
Advanced Custom Fields: Extended v0.5
0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.9 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1 0.9.1.1 0.9.2 0.9.2.1 0.9.2.2 0.9.2.3 0.9.2.4 trunk 0.5 0.5.1 0.5.2 0.5.2.1 0.5.2.3 0.5.5 0.5.5.1 0.5.8 0.5.8.1 0.6 0.6.0.1 0.6.0.2 0.6.1 0.6.3 0.6.5 0.6.7 0.6.7.2 0.7 0.7.0.3 0.7.5 0.7.5.5 0.7.8 0.7.9 0.7.9.3 0.7.9.4 0.7.9.9.8 0.7.9.9.9 0.8 0.8.1 0.8.2 0.8.3 0.8.3.1 0.8.4 0.8.4.1 0.8.4.5 0.8.4.6 0.8.5 0.8.5.5
acf-extended / assets / admin.js
acf-extended / assets Last commit date
admin.css 7 years ago admin.js 7 years ago
admin.js
42 lines
1 jQuery(document).ready(function($){
2
3 $('.acfe_modal').dialog({
4 title: 'Data',
5 dialogClass: 'wp-dialog',
6 autoOpen: false,
7 draggable: false,
8 width: 'auto',
9 modal: true,
10 resizable: false,
11 closeOnEscape: true,
12 position: {
13 my: "center",
14 at: "center",
15 of: window
16 },
17 open: function(){
18 $('.ui-widget-overlay').bind('click', function(){
19 $('.acfe_modal').dialog('close');
20 })
21 },
22 create: function(){
23 $('.ui-dialog-titlebar-close').addClass('ui-button');
24 },
25 });
26
27 $('.button.edit-field').each(function(k, v){
28 var tbody = $(this).closest('tbody');
29 $(tbody).find('.acfe_modal_open:first').insertAfter($(this));
30 $(tbody).find('tr.acf-field-setting-acfe_field_data:first').remove();
31 });
32
33 $('.acfe_modal_open').click(function(e){
34 e.preventDefault();
35
36 var key = $(this).attr('data-modal-key');
37 console.log(key);
38 $('.acfe_modal[data-modal-key=' + key + ']').dialog('open');
39
40 });
41
42 });