merge with upstream master
This commit is contained in:
@@ -73,15 +73,18 @@
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
$(document).ready(function () {
|
||||
(0, _auto_upload2.default)();
|
||||
var subarrayDisplay = new _subarray_display2.default();
|
||||
subarrayDisplay.init($('#current_anchors'), $('#needed_anchors'), $('#subarray_weight'), panel_data);
|
||||
var arrayVisualization = new _array_visualization2.default(panel_data, is_dual_tilt, subarrayDisplay, buildings_coordinates);
|
||||
arrayVisualization.init();
|
||||
new _zoom_control2.default(arrayVisualization).init($('#zoom_control'));
|
||||
new _overlay_control2.default(arrayVisualization).init($('#overlay_control'), $('#legend_container'));
|
||||
new _seismic_control2.default(arrayVisualization, subarrayDisplay).init($('.seismic_anchor_control'), $("#seismic_save"));
|
||||
window.arrayVisualization = arrayVisualization;
|
||||
(0, _auto_upload2.default)();
|
||||
|
||||
if (is_csv_available) {
|
||||
var subarrayDisplay = new _subarray_display2.default();
|
||||
subarrayDisplay.init($('#current_anchors'), $('#needed_anchors'), $('#subarray_weight'), panel_data);
|
||||
var arrayVisualization = new _array_visualization2.default(panel_data, is_dual_tilt, subarrayDisplay, buildings_coordinates);
|
||||
arrayVisualization.init();
|
||||
new _zoom_control2.default(arrayVisualization).init($('#zoom_control'));
|
||||
new _overlay_control2.default(arrayVisualization).init($('#overlay_control'), $('#legend_container'));
|
||||
new _seismic_control2.default(arrayVisualization, subarrayDisplay).init($('.seismic_anchor_control'), $("#seismic_save"));
|
||||
window.arrayVisualization = arrayVisualization;
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
@@ -24730,28 +24733,32 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
value: true
|
||||
});
|
||||
var AutoUpload = function AutoUpload() {
|
||||
$("#file_upload").change(function (e) {
|
||||
var ten_megabyte_max_upload = 10000000;
|
||||
$("#error_container_txt").empty();
|
||||
if (e.currentTarget.files[0].size < ten_megabyte_max_upload) {
|
||||
e.currentTarget.form.submit();
|
||||
} else {
|
||||
$("#error_container_txt").append('<span class="error_message centered_error" id="error_message_txt">The system configuration you have uploaded is too large. Try splitting your design into two separate text files and run the tool twice.</span>');
|
||||
}
|
||||
});
|
||||
$("#file_upload").change(function (e) {
|
||||
var ten_megabyte_max_upload = 10000000;
|
||||
$("#error_container_txt").empty();
|
||||
if (e.currentTarget.files[0].size < ten_megabyte_max_upload) {
|
||||
// $('#spinner-panel').show();
|
||||
$('#spinner-panel').css('width', '100%'); // Workaround for Safari issue
|
||||
e.currentTarget.form.submit();
|
||||
} else {
|
||||
$("#error_container_txt").append('<span class="error_message centered_error" id="error_message_txt">The system configuration you have uploaded is too large. Try splitting your design into two separate text files and run the tool twice.</span>');
|
||||
}
|
||||
});
|
||||
|
||||
$("#dxf_upload").change(function (e) {
|
||||
var ten_megabyte_max_upload = 10000000;
|
||||
$("#error_container_dxf").empty();
|
||||
if (e.currentTarget.files[0].size < ten_megabyte_max_upload) {
|
||||
e.currentTarget.form.submit();
|
||||
} else {
|
||||
$("#error_container_dxf").append('<span class="error_message centered_error" id="error_message_dxf">The system configuration you have uploaded is too large. Try splitting your design into two separate text files and run the tool twice.</span>');
|
||||
}
|
||||
});
|
||||
$("#dxf_upload").change(function (e) {
|
||||
var ten_megabyte_max_upload = 10000000;
|
||||
$("#error_container_dxf").empty();
|
||||
if (e.currentTarget.files[0].size < ten_megabyte_max_upload) {
|
||||
// $('#spinner-panel').show();
|
||||
$('#spinner-panel').css('width', '100%'); // Workaround for Safari issue
|
||||
e.currentTarget.form.submit();
|
||||
} else {
|
||||
$("#error_container_dxf").append('<span class="error_message centered_error" id="error_message_dxf">The system configuration you have uploaded is too large. Try splitting your design into two separate text files and run the tool twice.</span>');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
exports.default = AutoUpload;
|
||||
|
||||
Reference in New Issue
Block a user