Skip to content

Commit

Permalink
Increase width of file and image TVs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-H committed Jan 18, 2013
1 parent eb9ff45 commit dbd3639
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ MODx.panel.ImageTV = function(config) {
,value: config.value
},{
xtype: 'modx-combo-browser'
,anchor: '100%'
,browserEl: 'tvbrowser'+config.tv
,name: 'tvbrowser'+config.tv
,id: 'tvbrowser'+config.tv
Expand Down Expand Up @@ -75,6 +76,7 @@ MODx.panel.FileTV = function(config) {
,value: config.value
},{
xtype: 'modx-combo-browser'
,anchor: '100%'
,browserEl: 'tvbrowser'+config.tv
,name: 'tvbrowser'+config.tv
,id: 'tvbrowser'+config.tv
Expand Down Expand Up @@ -110,4 +112,4 @@ Ext.reg('modx-panel-tv-file',MODx.panel.FileTV);
MODx.checkTV = function(id) {
var cb = Ext.get('tv'+id);
Ext.get('tvh'+id).dom.value = cb.dom.checked ? cb.dom.value : '';
};
};
4 changes: 2 additions & 2 deletions manager/templates/default/element/tv/renders/input/file.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Ext.onReady(function() {
,tv: '{$tv->id}'
,renderTo: 'tvpanel{$tv->id}'
,value: '{$tv->value|escape}'
,width: '99%'
,anchor: '100%'
,msgTarget: 'under'
{literal}
});
Expand All @@ -32,7 +32,7 @@ Ext.onReady(function() {
,tv: '{$tv->id}'
,value: '{$tv->value|escape}'
,relativeValue: '{$tv->value|escape}'
,width: '97%'
,width: '100%'
,msgTarget: 'under'
,allowBlank: {if $params.allowBlank == 1 || $params.allowBlank == 'true'}true{else}false{/if}
,source: '{$source}'
Expand Down
4 changes: 2 additions & 2 deletions manager/templates/default/element/tv/renders/input/image.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Ext.onReady(function() {
,tv: '{$tv->id}'
,renderTo: 'tv-image-{$tv->id}'
,value: '{$tv->value|escape}'
,width: 400
,anchor: '100%'
,msgTarget: 'under'
{literal}
});
Expand All @@ -34,7 +34,7 @@ Ext.onReady(function() {
,tv: '{$tv->id}'
,value: '{$tv->value|escape}'
,relativeValue: '{$tv->value|escape}'
,width: '97%'
,width: '100%'
,allowBlank: {if $params.allowBlank == 1 || $params.allowBlank == 'true'}true{else}false{/if}
,wctx: '{if $params.wctx}{$params.wctx}{else}web{/if}'
{if $params.openTo},openTo: '{$params.openTo}'{/if}
Expand Down

1 comment on commit dbd3639

@exside
Copy link
Contributor

@exside exside commented on dbd3639 Apr 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

causes maybe problems with migx/imageTVs: http://forums.modx.com/thread/83771/problem-with-image-type-tv-and-2-4-2#dis-post-462626

Edit: it definitely seems to do so, all browsers I tested (IE9, FF, Chrome, Safari)

Please sign in to comment.