Commit 7824b430 authored by Ivan Tyagov's avatar Ivan Tyagov

Try to be more defensive and run only if in proper page (otherwise it breaks...

Try to be more defensive and run only if in proper page (otherwise it breaks some UI jQuery functions).
parent e75fe2d1
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts00095498.85</string> </value>
<value> <string>ts20671633.65</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -25,9 +25,13 @@
<item>
<key> <string>data</string> </key>
<value> <string>$(document).ready(function(){\n
\n
var my_url_run_test = $(document)[0].baseURI + \'runLiveTest\'\n
var my_url_read_test = $(document)[0].baseURI + \'readTestOutput\'\n
if (jQuery("*[name=\'field_your_test\']").length==0){\n
// not in proper page no need to continue\n
return ;\n
}\n
\n
var test = jQuery("*[name=\'field_your_test\']")[0].defaultValue\n
var run_only = jQuery("*[name=\'field_your_run_only\']")[0].defaultValue\n
var debug = 0\n
......@@ -86,7 +90,7 @@
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1813</int> </value>
<value> <int>1938</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
11
\ No newline at end of file
12
\ 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