This commit is contained in:
hmm 2014-08-25 13:29:25 +08:00
commit 9e0c698dcd
17 changed files with 28 additions and 28 deletions

View File

@ -38,7 +38,7 @@ Behavior.prototype.loadBehaviorList = function(plugin) {
async : false,
success : function(response) {
if (!response.success) {
alert(response.failedMessage);
information(response.failedMessage);
return;
}
behaviors = response.behaviors;
@ -67,7 +67,7 @@ Behavior.prototype.useBehaviorOfOnePluginContainerInit = function(plugin,
.children();
if (this.insertLocation == "before") {
for ( var j = length - 1; j > parseInt(this.clickPluginBehaviorNode - 1); j--) {
alert("j=" + j);
information("j=" + j);
this.behaviorWithPluginList[j + 1] = this.behaviorWithPluginList[j];
$(documentChild[j]).attr("id", parseInt(j + 1));
}

View File

@ -22,7 +22,7 @@ Plugin.prototype.loadPluginNameList = function() {
async : false,
success : function(response) {
if (!response.success) {
alert(response.failedMessage);
information(response.failedMessage);
return;
}
var pluginNameList = response.pluginNames;
@ -54,7 +54,7 @@ Plugin.prototype.loadPluginUIList = function() {
async : false,
success : function(response) {
if (!response.success) {
alert(response.failedMessage);
information(response.failedMessage);
return;
}
plugin.pluginList = response.pluginUIs;// List<PluginUIModel>pluginUIModels

View File

@ -61,6 +61,6 @@ ContainerFactory.prototype.appendEdtiors = function(container, label, name,
editorFactory.createSelect(label, name, editorInfo.size,
editorInfo.options, name));
} else {
alert("no such editor type:" + editorInfo.type);
information("no such editor type:" + editorInfo.type);
}
};

View File

@ -9,7 +9,7 @@ DataCollector.prototype.fieldData = function(editor) {
var name = editor.children("label").html();
var value = editor.children("input").val();
if (value == null || value == "") {
alert("please input data in " + editor.attr("id"));
information("please input data in " + editor.attr("id"));
return;
}
@ -19,7 +19,7 @@ DataCollector.prototype.dateData = function(editor) {
var name = editor.children("label").html();
var value = editor.children("input").val();
if (value == null || value == "") {
alert("please input data in " + editor.attr("id"));
information("please input data in " + editor.attr("id"));
return;
}
@ -28,7 +28,7 @@ DataCollector.prototype.dateData = function(editor) {
DataCollector.prototype.multiFieldData = function(editor) {
var editorArray = editor.children(".field");
if (ediotrArray.size == 0) {
alert("please input data in " + editor.attr("id"));
information("please input data in " + editor.attr("id"));
return;
}
@ -38,7 +38,7 @@ DataCollector.prototype.multiFieldData = function(editor) {
for ( var i = 0; i < editorArray.length; i++) {
var filedValue = $(editorArray[i]).children("input").val();
if (filedValue == null || filedValue == "") {
alert("please input data in" + editor.attr("id"));
information("please input data in" + editor.attr("id"));
return;
}

View File

@ -176,7 +176,7 @@ EditorFactory.prototype.createSelect = function(label, name, size, options, id)
size = 150;
}
if (options == null || options.length <= 0) {
alert("no options in:" + name);
information("no options in:" + name);
}
var div = this.createBaseEditor(label, id);

View File

@ -111,7 +111,7 @@ $("#remove-device").click(function(event) {
return ;
}
else{
alert(data.failedMessage);
information(data.failedMessage);
}
}
});

View File

@ -111,7 +111,7 @@ function Behavior(usePlugin, containerId) {
pluginName : pluginName
}, function(data) {
if (!data.success) {
alert("fail");
information("fail");
return;
}
$("#pluginMethod").html("");

View File

@ -71,6 +71,6 @@ ContainerFactory.prototype.appendEdtiors = function(container, label, name, id,
editorFactory.createCheckBox(label, name,
editorInfo.choiceModels, id,value));
} else {
alert("no such editor type:" + editorInfo.type);
information("no such editor type:" + editorInfo.type);
}
};

View File

@ -6,7 +6,7 @@ var DataCollector = function() {
};
DataCollector.prototype.validate = function(value) {
if (value == null || value == "") {
alert($.i18n.prop('dataCollect-input'));
information($.i18n.prop('dataCollect-input'));
return false;
}
return true;
@ -41,7 +41,7 @@ DataCollector.prototype.dateData = function(editor) {
DataCollector.prototype.multiFieldData = function(editor) {
var editorArray = editor.children(".field");
if (editorArray.size == 0) {
alert($.i18n.prop('dataCollect-input'));
information($.i18n.prop('dataCollect-input'));
return;
}
@ -146,7 +146,7 @@ DataCollector.prototype.getUnitParams = function(paramEditors) {
}
params.push(data);
} else {
alert($.i18n.prop('dataCollect-errorType'));
information($.i18n.prop('dataCollect-errorType'));
}
}

View File

@ -229,7 +229,7 @@ EditorFactory.prototype.createSelect = function(label, name, size, options, id,
size = 150;
}
if (options == null || options.length <= 0) {
alert("no options in:" + name);
information("no options in:" + name);
}
var div = this.createBaseEditor(label, id);

View File

@ -111,7 +111,7 @@ function Behavior(usePlugin, containerId) {
pluginName : pluginName
}, function(data) {
if (!data.success) {
alert("fail");
information("fail");
return;
}
$("#pluginMethod").html("");

View File

@ -71,6 +71,6 @@ ContainerFactory.prototype.appendEdtiors = function(container, label, name, id,
editorFactory.createCheckBox(label, name,
editorInfo.choiceModels, id,value));
} else {
alert("no such editor type:" + editorInfo.type);
information("no such editor type:" + editorInfo.type);
}
};

View File

@ -6,7 +6,7 @@ var DataCollector = function() {
};
DataCollector.prototype.validate = function(value) {
if (value == null || value == "") {
alert($.i18n.prop('dataCollect-input'));
information($.i18n.prop('dataCollect-input'));
return false;
}
return true;
@ -41,7 +41,7 @@ DataCollector.prototype.dateData = function(editor) {
DataCollector.prototype.multiFieldData = function(editor) {
var editorArray = editor.children(".field");
if (editorArray.size == 0) {
alert($.i18n.prop('dataCollect-input'));
information($.i18n.prop('dataCollect-input'));
return;
}
@ -146,7 +146,7 @@ DataCollector.prototype.getUnitParams = function(paramEditors) {
}
params.push(data);
} else {
alert($.i18n.prop('dataCollect-errorType'));
information($.i18n.prop('dataCollect-errorType'));
}
}

View File

@ -229,7 +229,7 @@ EditorFactory.prototype.createSelect = function(label, name, size, options, id,
size = 150;
}
if (options == null || options.length <= 0) {
alert("no options in:" + name);
information("no options in:" + name);
}
var div = this.createBaseEditor(label, id);

View File

@ -2,7 +2,7 @@ var script = new Array();
$(document).ready(function() {
$.post("loadScripts", {}, function(data) {
if (!data.success) {
alert(data.failedMessage);
information(data.failedMessage);
return;
}
data = data.scripts;

View File

@ -18,7 +18,7 @@ $(function() {
behavior.loadBehaviorResults(testPlanRunId, testPlan.scripts);
var tree = getResultTree(testPlanRunId);
if (tree == null) {
alert($.i18n.prop('test-error'));
information($.i18n.prop('test-error'));
}
var chart = new Chart();
@ -36,7 +36,7 @@ $(function() {
var testStatus = testStatusMap("Complete");
$('#status').html("<h4>" + testStatus + '</h4>');
} else {
alert($.i18n("stopTestPlan_fail"));
information($.i18n("stopTestPlan_fail"));
}
})

View File

@ -169,7 +169,7 @@ Tree.prototype.getTreePathNodes = function(pathValues) {
if (pathValues == null)
return;
if (this.root == null) {
alert("error");
information("error");
return;
}
var currentNode = this.root;
@ -178,7 +178,7 @@ Tree.prototype.getTreePathNodes = function(pathValues) {
nodeArray.push(new DeleteNode(this.root, 0));
for ( var i = 0; i < pathValues.length; i++) {
if (currentNode.children == null) {
alert("error");
information("error");
return null;
}
for ( var j = 0; j < currentNode.children.length; j++)