Description
step:
1.created ddoc and view with the same names, inserted following code:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function myFunction()
</script>
</head>
<body>
<input type="button" onclick="myFunction()" value="Show alert box" />
</body>
</html>
2. try to delete created ddoc
result:
redirect on the page home page and error is in the log:
Client-side error-report for user "Administrator" on node 'ns_1@127.0.0.1':
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5
Got unhandled error: Uncaught ReferenceError: myFunction is not defined
At: http://10.5.2.16:8091/index.html#deleteDDoc=&sec=views:1
Backtrace:
Function: collectBacktraceViaCaller
Args:
---------
Function: appOnError
Args:
"Uncaught ReferenceError: myFunction is not defined"
"http://10.5.2.16:8091/index.html#deleteDDoc=&sec=views"
1
---------