Authored by lingmin

dialog update

... ... @@ -74,6 +74,13 @@
}
var dialogDiv = $("<div>").addClass("modal-dialog").css(opt.style).addClass(opt.size ? opt.size : "").attr("role", "document").appendTo(self);
var contentDiv = $("<div>").addClass("modal-content").append(header).append(body).append(footer).appendTo(dialogDiv);
if (opt.height) {
body.css("height", opt.height);
}
if (opt.width) {
contentDiv.css("width", opt.width);
}
self.on("show.bs.modal", function(e) {
if (opt.onBeforeShow) {
... ...
... ... @@ -206,21 +206,23 @@
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop: "static",
title: "异常详情",
content: content,
height: "60%",
width: "50%",
buttons: [{
text: "关闭",
className: "btn-danger",
onclick: function () {
backdrop : "static",
title : "异常详情",
content : content,
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
onclick : function() {
$(dialog).dialog("hide");
}
}]
});
}
});
return div;
}
... ... @@ -296,21 +298,23 @@
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop: "static",
title: "异常详情",
content: content,
height: "60%",
width: "50%",
buttons: [{
text: "关闭",
className: "btn-danger",
onclick: function () {
backdrop : "static",
title : "异常详情",
content : content,
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
onclick : function() {
$(dialog).dialog("hide");
}
}]
});
}
});
return div;
}
... ...
... ... @@ -124,8 +124,8 @@
backdrop: "static",
title: "异常详情",
content: content,
height: "60%",
width: "50%",
height : "700px",
width : "1100px",
buttons: [{
text: "关闭",
className: "btn-danger",
... ... @@ -210,8 +210,8 @@
backdrop: "static",
title: "异常详情",
content: content,
height: "60%",
width: "50%",
height : "700px",
width : "1100px",
buttons: [{
text: "关闭",
className: "btn-danger",
... ...
... ... @@ -346,14 +346,16 @@
content= content +rowData.errorInfo[i]+"<br><br>";
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop : "static",
title : "异常详情",
content : content,
height : "80%",
width : "60%",
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
... ... @@ -362,6 +364,7 @@
}
}]
});
}
});
return div;
}
... ... @@ -382,13 +385,14 @@
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop : "static",
title : "超时详情",
content : content,
height : "80%",
width : "60%",
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
... ... @@ -397,6 +401,7 @@
}
}]
});
}
});
return div;
}
... ... @@ -460,13 +465,14 @@
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop : "static",
title : "异常详情",
content : content,
height : "80%",
width : "60%",
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
... ... @@ -475,6 +481,7 @@
}
}]
});
}
});
return div;
}
... ... @@ -495,13 +502,14 @@
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop : "static",
title : "超时详情",
content : content,
height : "80%",
width : "60%",
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
... ... @@ -510,6 +518,8 @@
}
}]
});
}
});
return div;
}
... ... @@ -575,13 +585,14 @@
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop : "static",
title : "异常详情",
content : content,
height : "80%",
width : "60%",
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
... ... @@ -590,6 +601,8 @@
}
}]
});
}
});
return div;
}
... ... @@ -610,13 +623,14 @@
}
}
editBtn.click(function () {
if(content != ""){
var dialog = $("<div>").appendTo($("body"));
dialog.dialog({
backdrop : "static",
title : "超时详情",
content : content,
height : "80%",
width : "60%",
height : "700px",
width : "1100px",
buttons : [{
text : "关闭",
className : "btn-danger",
... ... @@ -625,6 +639,8 @@
}
}]
});
}
});
return div;
}
... ...