Skip to content

Commit

Permalink
Merge pull request #3 from edemir206/fix-acf-admin-input-error
Browse files Browse the repository at this point in the history
Fix admin input error due to acf update
  • Loading branch information
petitphp authored Jul 11, 2024
2 parents 06ca08a + 7e9956f commit b14d27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions assets/js/input-5.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
(function ($) {
// user
acf.fields.user = acf.fields.select.extend({
(function($){

type: 'user_network'
var Field = acf.models.SelectField.extend({
type: 'user_network',
});

acf.registerFieldType( Field );

});
})(jQuery);
2 changes: 1 addition & 1 deletion assets/js/input-5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b14d27d

Please sign in to comment.