Permalink
Browse files

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

…irty and enables save button
  • Loading branch information...
Shaun McCormick
Shaun McCormick committed Jul 3, 2012
1 parent 4d427e8 commit b8e5126158eccce64567753bf26c106b2f354703
@@ -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
@@ -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.