From a86c2eb2db34d2d350e5c2eb72bf6416ec89c0d2 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 19 十一月 2024 11:43:03 +0800
Subject: [PATCH] 1)可靠性评定时新增模型检查处理; 2)获取任务二项分布参数时,去掉模型的匹配。
---
web/public/SVGOrigin/Method-Draw-master/editor/src/dialog.js | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/web/public/SVGOrigin/Method-Draw-master/editor/src/dialog.js b/web/public/SVGOrigin/Method-Draw-master/editor/src/dialog.js
index b92884f..beef8e9 100644
--- a/web/public/SVGOrigin/Method-Draw-master/editor/src/dialog.js
+++ b/web/public/SVGOrigin/Method-Draw-master/editor/src/dialog.js
@@ -1,49 +1,49 @@
// This sets up alternative dialog boxes. They mostly work the same way as
// their UI counterparts, expect instead of returning the result, a callback
// needs to be included that returns the result as its first parameter.
-// In the future we may want to add additional types of dialog boxes, since
+// In the future we may want to add additional types of dialog boxes, since
// they should be easy to handle this way.
(function() {
$('#dialog_container').draggable({cancel:'#dialog_content, #dialog_buttons *', containment: 'window'});
var box = $('#dialog_box'), btn_holder = $('#dialog_buttons');
-
+
var dbox = function(type, msg, callback, defText) {
$('#dialog_content').html('<p>'+msg.replace(/\n/g,'</p><p>')+'</p>')
.toggleClass('prompt',(type=='prompt'));
btn_holder.empty();
-
+
var ok = $('<input type="button" value="' + uiStrings.common.ok + '">').appendTo(btn_holder);
-
+
if(type != 'alert') {
$('<input type="button" value="' + uiStrings.common.cancel + '">')
.appendTo(btn_holder)
.on("click touchstart", function() { box.hide();callback(false)});
}
-
+
if(type == 'prompt') {
var input = $('<input type="text">').prependTo(btn_holder);
input.val(defText || '');
input.bind('keydown', 'return', function() {ok.trigger("click touchstart");});
}
-
+
if(type == 'process') {
ok.hide();
}
box.show();
-
- ok.on("click touchstart", function() {
+
+ ok.on("click touchstart", function() {
box.hide();
var resp = (type == 'prompt')?input.val():true;
if(callback) callback(resp);
}).focus();
-
+
if(type == 'prompt') input.focus();
}
-
+
$.alert = function(msg, cb) { dbox('alert', msg, cb);};
$.confirm = function(msg, cb) { dbox('confirm', msg, cb);};
$.process_cancel = function(msg, cb) { dbox('process', msg, cb);};
$.prompt = function(msg, txt, cb) { dbox('prompt', msg, cb, txt);};
-}());
\ No newline at end of file
+}());
--
Gitblit v1.9.1