Skip to content
Browse files

[#219] Ensure that GalleryAlbums custom TV marks resource edit form d…

…irty and enables save button
  • Loading branch information...
1 parent 4d427e8 commit b8e5126158eccce64567753bf26c106b2f354703 Shaun McCormick committed
View
1 core/components/gallery/docs/changelog.txt
@@ -2,6 +2,7 @@ Changelog for Gallery.
Gallery 1.5.2
====================================
+- [#219] Ensure that GalleryAlbums custom TV marks resource edit form dirty and enables save button
- [#214] Enable Gallery Album browsing via MODX.Browser window
- [#217] Add default cover when using GalleryAlbums with cover displays and no item is in the album
View
9 core/components/gallery/elements/tv/galleryalbumlist.input.tpl
@@ -16,7 +16,7 @@ Ext.onReady(function() {
,'<div style="clear: both;"></div></div></tpl>'
);
- MODx.load({{/literal}
+ var fld = MODx.load({{/literal}
xtype: 'combo'
,store: galStore{$tv->id}
,displayField: 'name'
@@ -44,8 +44,15 @@ Ext.onReady(function() {
{/if}
,forceSelection: {if $params.forceSelection && $params.forceSelection != 'false'}true{else}false{/if}
,msgTarget: 'under'
+ ,listeners: { 'select': { fn:MODx.fireResourceFormChange, scope:this}}
{literal}});
+
+ var pr = Ext.getCmp('modx-panel-resource');
+ if (pr) {
+ pr.getForm().add(fld);
+ }
+ MODx.makeDroppable(fld);
});
// ]]>
</script>

0 comments on commit b8e5126

Please sign in to comment.
Something went wrong with that request. Please try again.