Skip to content
Permalink
Browse files

Remove Advanced Search functionality. Fix #448, #108

  • Loading branch information...
atodorov committed Aug 1, 2018
1 parent 4d3f1f7 commit 0492deea66bf95c0e5e56a54588190b84a877c3d

This file was deleted.

Oops, something went wrong.
@@ -11,7 +11,6 @@ Submodules

.. toctree::

tcms.search.advanced_search
tcms.search.forms
tcms.search.order
tcms.search.query
@@ -145,10 +145,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:96
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:98
msgid "REPORTING"
msgstr "BERICHTERSTATTUNG"
@@ -154,10 +154,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:96
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:98
msgid "REPORTING"
msgstr ""
@@ -149,10 +149,6 @@ msgstr "Iskanje testiranj"
msgid "Search Test Cases"
msgstr "Iskanje testnih scenarijev"

#: tcms/settings/common.py:96
msgid "Advanced Search"
msgstr "Napredno iskanje"

#: tcms/settings/common.py:98
msgid "REPORTING"
msgstr "POROČANJE"
@@ -145,10 +145,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:96
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:98
msgid "REPORTING"
msgstr ""
@@ -145,10 +145,6 @@ msgstr ""
msgid "Search Test Cases"
msgstr ""

#: tcms/settings/common.py:96
msgid "Advanced Search"
msgstr ""

#: tcms/settings/common.py:98
msgid "REPORTING"
msgstr ""

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -88,8 +88,6 @@
(_('Search Test Plans'), reverse_lazy('plans-all')),
(_('Search Test Runs'), reverse_lazy('testruns-all')),
(_('Search Test Cases'), reverse_lazy('testcases-search')),
('-', '-'),
(_('Advanced Search'), '/advance-search/'),
]),
(_('REPORTING'), [
(_('Overall report'), reverse_lazy('report-overall')),
Binary file not shown.
@@ -1,6 +1,5 @@
Nitrate.TestCases = {};
Nitrate.TestCases.List = {};
Nitrate.TestCases.AdvanceList = {};
Nitrate.TestCases.Details = {};
Nitrate.TestCases.Create = {};
Nitrate.TestCases.Edit = {};
@@ -28,72 +27,6 @@ Nitrate.TestCases.Clone = {};
window.Nitrate.TestCases = TestCases;
}());

Nitrate.TestCases.AdvanceList.on_load = function() {
bind_category_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_category')[0]);
bind_component_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_component')[0]);
if (jQ('#id_checkbox_all_case').length) {
jQ('#id_checkbox_all_case').bind('click', function(e) {
clickedSelectAll(this, jQ(this).closest('form')[0], 'case');
if (this.checked) {
jQ('#case_advance_printable').attr('disabled', false);
} else {
jQ('#case_advance_printable').attr('disabled', true);
}
});
};

jQ('#id_blind_all_link').bind('click', function(e) {
if (!jQ('div[id^="id_loading_"]').length) {
jQ(this).removeClass('locked');
}
if (jQ(this).is('.locked')) {
//To disable the 'expand all' until all case runs are expanded.
return false;
} else {
jQ(this).addClass('locked');
var element = jQ(this).children()[0];
if (jQ(element).is('.collapse-all')) {
this.title = 'Collapse all cases';
blinddownAllCases(element);
} else {
this.title = 'Expand all cases';
blindupAllCases(element);
}
}
});

var toggle_case = function(e) {
var c = jQ(this).parent()[0]; // Container
var c_container = jQ(c).next()[0]; // Content Containers
var case_id = jQ(c).find('input[name="case"]')[0].value;

toggleTestCasePane({ case_id: case_id, casePaneContainer: jQ(c_container) });
toggleExpandArrow({ caseRowContainer: jQ(c), expandPaneContainer: jQ(c_container) });
};

jQ('.expandable').bind('click', toggle_case);

jQ("#testcases_table tbody tr input[type=checkbox][name=case]").live('click', function() {
if (jQ('input[type=checkbox][name=case]:checked').length) {
jQ("#case_advance_printable").attr('disabled', false);
} else {
jQ("#case_advance_printable").attr('disabled', true);
}
});

if (window.location.hash === '#expandall') {
blinddownAllCases();
}

var listParams = Nitrate.TestCases.List.Param;
jQ('#case_advance_printable').bind('click', function() {
postToURL(listParams.case_printable, Nitrate.Utils.formSerialize(this.form));
});
jQ('#export_selected_cases').bind('click', function() {
postToURL(listParams.case_export, Nitrate.Utils.formSerialize(this.form));
});
};

Nitrate.TestCases.List.on_load = function() {
bind_category_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_category')[0]);
bind_component_selector_to_product(true, true, jQ('#id_product')[0], jQ('#id_component')[0]);
Oops, something went wrong.

0 comments on commit 0492dee

Please sign in to comment.
You can’t perform that action at this time.