diff --git a/plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js b/plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js index 60946dba26..81e71bb851 100644 --- a/plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js +++ b/plugins/scm-hg-plugin/src/main/resources/sonia/scm/hg.config-wizard.js @@ -72,6 +72,40 @@ Sonia.hg.ConfigWizard = Ext.extend(Ext.Window,{ }); +Sonia.hg.InstallationJsonReader = function(){ + this.RecordType = Ext.data.Record.create([{ + name: "path", + mapping: "path", + type: "string" + }]); +}; + +Ext.extend(Sonia.hg.InstallationJsonReader, Ext.data.JsonReader, { + + readRecords: function(o){ + this.jsonData = o; + + if (debug){ + console.debug('read installation data from json'); + console.debug(o); + } + + var records = []; + var paths = o.path; + for ( var i=0; iStep 1' + layout: 'form', + items: [{ + fieldLabel: 'Mercurial Installation', + name: 'mercurial', + xtype: 'combo', + readOnly: false, + triggerAction: 'all', + lazyRender: true, + mode: 'local', + editable: true, + store: hgInstallationStore, + valueField: 'path', + displayField: 'path', + allowBlank: false + }] },{ id: 'step-2', html: '

Step 2

'