Version Description
- Activate datetimepicker in repeat group #80
Download this release
Release Info
Developer | inc2734 |
Plugin | Smart Custom Fields |
Version | 4.1.3 |
Comparing to | |
See all releases |
Code changes from version 4.1.2 to 4.1.3
- js/editor-datepicker.js +8 -0
- js/editor.js +2 -0
- readme.txt +5 -2
- smart-custom-fields.php +1 -1
js/editor-datepicker.js
CHANGED
@@ -23,5 +23,13 @@ jQuery( function( $ ) {
|
|
23 |
$( e ).datepicker( $( e ).data( 'js' ) );
|
24 |
}
|
25 |
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
} );
|
27 |
} );
|
23 |
$( e ).datepicker( $( e ).data( 'js' ) );
|
24 |
}
|
25 |
} );
|
26 |
+
|
27 |
+
$( '.smart-cf-datetime_picker.add' ).each( function ( i, e ) {
|
28 |
+
var data = e.getAttribute( 'data-js' );
|
29 |
+
data = JSON.parse( data );
|
30 |
+
data['enableTime'] = true;
|
31 |
+
flatpickr( this, data );
|
32 |
+
$( this ).removeClass( 'add' );
|
33 |
+
} );
|
34 |
} );
|
35 |
} );
|
js/editor.js
CHANGED
@@ -58,6 +58,8 @@ jQuery( function( $ ) {
|
|
58 |
}
|
59 |
} );
|
60 |
|
|
|
|
|
61 |
button.parent().after( clone.fadeIn( 'fast' ) );
|
62 |
button.trigger( 'smart-cf-after-add-group', { button: button, clone: clone} );
|
63 |
}
|
58 |
}
|
59 |
} );
|
60 |
|
61 |
+
clone.find( '.smart-cf-datetime_picker' ).addClass( 'add' );
|
62 |
+
|
63 |
button.parent().after( clone.fadeIn( 'fast' ) );
|
64 |
button.trigger( 'smart-cf-after-add-group', { button: button, clone: clone} );
|
65 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Smart Custom Fields ===
|
2 |
-
Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive, hanamura, justinticktock, designhehe, mayukojpn, hogetan, robssanches, mirucon
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9.8
|
7 |
-
Stable tag: 4.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,6 +129,9 @@ You can translate this plugin into your language by using [GlotPress](https://tr
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
132 |
= 4.1.2 =
|
133 |
* Fix PHP syntax error.
|
134 |
|
1 |
=== Smart Custom Fields ===
|
2 |
+
Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive, hanamura, justinticktock, designhehe, mayukojpn, hogetan, robssanches, mirucon, sysbird
|
3 |
Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
4 |
Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9.8
|
7 |
+
Stable tag: 4.1.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 4.1.3 =
|
133 |
+
* Activate datetimepicker in repeat group #80
|
134 |
+
|
135 |
= 4.1.2 =
|
136 |
* Fix PHP syntax error.
|
137 |
|
smart-custom-fields.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin name: Smart Custom Fields
|
4 |
* Plugin URI: https://github.com/inc2734/smart-custom-fields/
|
5 |
* Description: Smart Custom Fields is a simple plugin that management custom fields.
|
6 |
-
* Version: 4.1.
|
7 |
* Author: inc2734
|
8 |
* Author URI: https://2inc.org
|
9 |
* Text Domain: smart-custom-fields
|
3 |
* Plugin name: Smart Custom Fields
|
4 |
* Plugin URI: https://github.com/inc2734/smart-custom-fields/
|
5 |
* Description: Smart Custom Fields is a simple plugin that management custom fields.
|
6 |
+
* Version: 4.1.3
|
7 |
* Author: inc2734
|
8 |
* Author URI: https://2inc.org
|
9 |
* Text Domain: smart-custom-fields
|