Created
February 6, 2013 09:52
-
-
Save hansek/4721517 to your computer and use it in GitHub Desktop.
Definition of browser field in my panel.js, but it returns only one argument (data about selected image), but there is no info in which Media Source was file selected.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
name: 'annex', | |
fieldLabel: _('workshops.annex'), | |
xtype: 'modx-combo-browser', | |
id: this.ident +'-annex', | |
maxLength: 250, | |
hideFiles: true, | |
listeners: { | |
'select': { | |
fn: function(data) { | |
console.log(arguments); | |
}, | |
scope: this | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only what I get in console is result: