#3732 (ok 4.0) - Unterminated JS string error

Latest_Git_snapshot
fixed
AJAX (98)
1
2013-06-11
2012-11-10
Shanroo
No

After view the structure page of an empty table all of links stops working (non-ajax links and db list pagination on left works fine).

browser: google chrome 23.0.1271.64 m
server: your demo server #2 (phpMyAdmin demo - MySQL) ver: 4.0.0-dev Git revision: 397c5b8 from master branch,
committed on 2012. Nov 10. 21:09 by Marc Delisle
chrome error console:
Uncaught SyntaxError: Unexpected token ILLEGAL >>>> db_structure.php:1

Opera fails 12.02 too, here's the console:
Syntax error at line 1 in event handler: expected ')', got <invalid token>
kell hozzáadnia., 1)
--------------------^ Script compilation index.php
Uncaught exception: TypeError: Cannot convert '$(this).data("onsubmit",this.onsubmit)' to object
Error thrown at line 1, column 8526 in <anonymous function>() in http://demo.phpmyadmin.net/master/js/ajax.js?ts=1352556926:
$(this).data("onsubmit",this.onsubmit).attr("onsubmit","")
called via Function.prototype.call() from unknown location in <anonymous function: each>(b0, b3, bZ) in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
/* no source available */
called from line 16, column 4944 in <anonymous function: each>(bY, bX) in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
return bC.each(this,bY,bX)
called from line 1, column 8379 in <anonymous function>() in http://demo.phpmyadmin.net/master/js/ajax.js?ts=1352556926:
$("form").not(".ajax").not(".disableAjax").each(function(){if($(this).attr("onsubmit")){$(this).data("onsubmit",this.onsubmit).attr("onsubmit","")}})
called via Function.prototype.apply() from line 16, column 61423 in <anonymous function: handle>(by) in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
by.handleObj=bw;
called from line 16, column 54317 in <anonymous function: bx>(bF) in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
return typeof b!=="undefined"&&(!bF||b.event.triggered!==bF.type)?b.event.handle.apply(bx.elem,arguments):K
called from line 16, column 59161 in <anonymous function: trigger>(e, by, bw, bD) in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
bz.apply(bC,by)
called from line 16, column 75557 in <anonymous function: trigger>() in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
b.event.trigger(e,bs,this)
called from unknown location in <anonymous function: each>(b0, b3, bZ) in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
/* no source available */
called from line 16, column 4944 in <anonymous function: each>(bY, bX) in http://demo.phpmyadmin.net/master/js/jquery/jquery-1.6.2.js?ts=1352556933:
return bC.each(this,bY,bX)

Discussion

    • assigned_to: nobody --> roccivic
     
  • This bug was fixed in repository and will be part of a future release; thanks for reporting.

     
    • priority: 5 --> 1
    • summary: AJAX links stops working after view an empty table's stru... --> (ok 4.0) - Unterminated JS string error
    • status: open --> closed-fixed
     
  • Michal Čihař
    Michal Čihař
    2013-06-11

    • Status: closed-fixed --> fixed