{"size": 509, "ext": "js", "max_stars_repo_path": "panel/js/UI/view/testcase-grid/remove-dirty-mark.js", "max_stars_repo_name": "rafipasha/katalon-recorder", "max_stars_repo_stars_event_min_datetime": "2019-02-15T14:51:32.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T16:28:22.000Z", "max_issues_repo_path": "panel/js/UI/view/testcase-grid/remove-dirty-mark.js", "max_issues_repo_name": "rafipasha/katalon-recorder", "max_issues_repo_issues_event_min_datetime": "2019-02-19T23:08:32.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T23:17:03.000Z", "max_forks_repo_path": "panel/js/UI/view/testcase-grid/remove-dirty-mark.js", "max_forks_repo_name": "rafipasha/katalon-recorder", "max_forks_repo_forks_event_min_datetime": "2019-02-15T14:47:04.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-14T02:36:15.000Z"}
{"max_stars_count": 281, "max_issues_count": 92, "max_forks_count": 144, "avg_line_length": 39.1538461538, "max_line_length": 99, "alphanum_fraction": 0.6856581532}
import { getSelectedCase } from "./selected-case.js";
import { trackingSaveTestCase } from "../../services/tracking-service/segment-tracking-service.js";

const removeDirtyMarks = (type) => {
    const s_case = getSelectedCase();
    $(s_case).parent().find("strong").removeClass("modified");
    $(s_case).removeClass("modified");
    _gaq.push(['_trackEvent', 'save-testCase', 'done']);
    let title = $(s_case).children('span').text();
    trackingSaveTestCase(type, title);
}

export { removeDirtyMarks }