1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 09:44:38 +02:00

Add new new full JS API for Inputfields, represented by 'Inputfields' JS var. See top of inputfields.js file for details.

This commit is contained in:
Ryan Cramer
2019-10-31 15:29:32 -04:00
parent 7d5cef5717
commit da36905422
5 changed files with 818 additions and 199 deletions

View File

@@ -862,6 +862,7 @@ class WireTextTools extends Wire {
* @param array $oldArray
* @param array $newArray
* @return array
* @since 3.0.144
*
*/
protected function diffArray(array $oldArray, array $newArray) {
@@ -923,6 +924,7 @@ class WireTextTools extends Wire {
* - `entityEncode` (bool): Entity encode values, other than added ins/del tags? (default=true)
* - `split` (string): Regex used to split strings for parts to diff (default=`\s+`)
* @return string
* @since 3.0.144
*
*/
public function diffMarkup($old, $new, array $options = array()) {

View File

@@ -831,6 +831,10 @@ var ProcessWireAdminTheme = {
$(document).on('reloaded', function() { initFormMarkup($(this)) }); // function() intentional
$(document).on('hideInputfield', showHideInputfield);
$(document).on('showInputfield', showHideInputfield);
$(document).on('columnWidth', '.Inputfield', function(e, width) {
ukGridClass(width, $(this));
return false;
});
$('body').addClass('InputfieldColumnWidthsInit');
initFormMarkup();

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long