eisen-dev/eisen_front

View on GitHub
webd/ts/script.ts

Summary

Maintainability
D
2 days
Test Coverage

Showing 4 of 4 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

jQuery("[data-modal='open']").click(function () {
// 開きたいモーダルのID
var target = "#" + jQuery(this).attr("data-modal-target");
// 開きたいモーダルに属性追加
jQuery(target).attr({"data-modal-active": "true"});
Severity: Major
Found in webd/ts/script.ts and 1 other location - About 1 day to fix
webd/ts/async.ts on lines 109..121

Similar blocks of code found in 2 locations. Consider refactoring.
Open

jQuery(window).resize(function () {
jQuery('.list-data-cbox').bind('click',function(e){
e.stopPropagation();
});
// リサイズ対象の現在開かれているモーダル
Severity: Major
Found in webd/ts/script.ts and 1 other location - About 6 hrs to fix
webd/ts/async.ts on lines 94..107

Identical blocks of code found in 2 locations. Consider refactoring.
Open

if (jQuery(target).css("display") == "none") {
jQuery(target).css("display", "block");
} else if (jQuery(target).css("display") != "none") {
jQuery(target).css("display", "none");
}
Severity: Major
Found in webd/ts/script.ts and 1 other location - About 2 hrs to fix
webd/ts/script.ts on lines 113..117

Identical blocks of code found in 2 locations. Consider refactoring.
Open

if (jQuery(target).css("display") == "none") {
jQuery(target).css("display", "block");
} else if (jQuery(target).css("display") != "none") {
jQuery(target).css("display", "none");
}
Severity: Major
Found in webd/ts/script.ts and 1 other location - About 2 hrs to fix
webd/ts/script.ts on lines 122..126
Category
Status