Skip to content
Snippets Groups Projects
Commit 5b280fed authored by juanf's avatar juanf
Browse files

SSDM-3108 : File upload mini, working prototype, no submit button.

SVN: 36094
parent fe3cf7b4
No related branches found
No related tags found
No related merge requests found
...@@ -182,8 +182,9 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) { ...@@ -182,8 +182,9 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) {
.append($('<div>', { class : "form-group"})) .append($('<div>', { class : "form-group"}))
.append($('<div>', {class: FormUtil.controlColumnClass}) .append($('<div>', {class: FormUtil.controlColumnClass})
.append($('<input>', { class : 'btn btn-primary', 'type' : 'submit', 'value' : btnText}))); .append($('<input>', { class : 'btn btn-primary', 'type' : 'submit', 'value' : btnText})));
if(!_this._dataSetFormModel.isMini){
$wrapper.append($submitButton); $wrapper.append($submitButton);
}
} }
...@@ -199,9 +200,15 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) { ...@@ -199,9 +200,15 @@ function DataSetFormView(dataSetFormController, dataSetFormModel) {
if(dataSetTypeCode != null) { if(dataSetTypeCode != null) {
$("#DATASET_TYPE").val(dataSetTypeCode); $("#DATASET_TYPE").val(dataSetTypeCode);
$("#DATASET_TYPE").prop('disabled', true); $("#DATASET_TYPE").prop('disabled', true);
_this._repaintMetadata( if(!_this._dataSetFormModel.isMini){
_this._dataSetFormController._getDataSetType(dataSetTypeCode) _this._repaintMetadata(
); _this._dataSetFormController._getDataSetType(dataSetTypeCode)
);
}
}
if(_this._dataSetFormModel.isMini){
_this._dataSetFormController.submitDataSet();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment