Commit 676e32b8 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix Typo ok -> access

The information is cached/stored as #access by SlapTool and not as #ok on memcached.
parent 5a1a2ce7
......@@ -111,11 +111,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
now = new Date(),\n
context = $(this);\n
// 5 minute for computer. 1 day for instance.\n
if (/#ok/.test(data.text) & /computer_module/.test(data[\'@document\']) & (now - created_at < 300000)) {\n
if (/#access/.test(data.text) & /computer_module/.test(data[\'@document\']) & (now - created_at < 300000)) {\n
$(this).attr("class", "monitoring_ok")\n
.attr("title", data.text + " (" + created_at + ")" )\n
.attr("href", data[\'@document\']);\n
} else if (/#ok/.test(data.text) & /software_instance_module/.test(data[\'@document\']) & (now - created_at < 86400000)) {\n
} else if (/#access/.test(data.text) & /software_instance_module/.test(data[\'@document\']) & (now - created_at < 86400000)) {\n
$(this).attr("class", "monitoring_ok")\n
.attr("title", data.text + " (" + created_at + ")" )\n
.attr("href", data[\'@document\']);\n
......
467
\ No newline at end of file
468
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment