Skip to content

Commit

Permalink
Used media2.js for cleaner dom.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Sep 7, 2023
1 parent 6e48b7f commit 1d7b8d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ public class ChooseMediaField extends CustomField<String> {
private final ChooseMediaFieldDefinition definition;
private final String cmsSelector;

public ChooseMediaField(ChooseMediaFieldDefinition definition, @Named("poms.baseUrl") String pomsBaseUrl) {
this.definition = definition;
this.cmsSelector = pomsBaseUrl + "/CMSSelector/media.js";
public ChooseMediaField(
ChooseMediaFieldDefinition definition,
@Named("poms.baseUrl") String pomsBaseUrl) {
this .definition = definition;
this.cmsSelector = pomsBaseUrl + "/CMSSelector/media2.js";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
window.nl_vpro_magnolia_ui_field_mediachooser = function(id, mediaType, property) {

media.select(function (result) {
nl_vpro_media_CMSSelector.select(function (result) {
var el = $("#" + id);
el.val(result[property]);
el.blur();
Expand Down

0 comments on commit 1d7b8d9

Please sign in to comment.