Module: check_mk
Branch: master
Commit: dfd609961d3ea0daf02dc8b09dff2f9dd829a604
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dfd609961d3ea0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 2 16:21:45 2014 +0100
Removed deprecated code
---
web/htdocs/js/checkmk.js | 29 -----------------------------
1 file changed, 29 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index d9209ef..c8321c2 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -1172,10 +1172,6 @@ function toggle_row(e, elem) {
if(checkbox === null)
return;
- // When CTRL is not pressed, remove the selection
- //if(!e.ctrlKey)
- // remove_selected_rows(row_num);
-
// Is SHIFT pressed?
// Yes:
// Select all from the last selection
@@ -1207,24 +1203,6 @@ function toggle_row(e, elem) {
return false;
}
-// FIXME: If current "row text selection" behavior is ok - remove this
-//function disable_selection(e) {
-// if(!e)
-// e = window.event;
-//
-// // Skip handling clicks on links/images/...
-// var target = getTarget(e);
-// if(target.tagName != 'TD')
-// return true;
-//
-// // Firefox handling
-// if(typeof target.style.MozUserSelect != 'undefined')
-// target.style.MozUserSelect = 'none';
-//
-// // All others
-// return false;
-//}
-
// Toggles the datarows of the group which the given checkbox is part of.
function toggle_group_rows(checkbox) {
// 1. Find the first tbody parent
@@ -1392,13 +1370,6 @@ function table_init_rowselect(oTable) {
elem.onclick = function(e) {
return toggle_row(e, this);
};
- // Disable selections in IE and then in mozilla
- //elem.onselectstart = function(e) {
- // return disable_selection(e);
- //};
- //elem.onmousedown = function(e) {
- // return disable_selection(e);
- //};
elem = null;
});
}