|
360 | 360 | if ( $(e.target).hasClass("sql") ) {
|
361 | 361 | item = dataView.getItem(args.row);
|
362 | 362 | var itemNext = dataView.getItem(args.row+1);
|
363 |
| - var data = "sql=" + encodeURIComponent( item.argument ); |
| 363 | + var data = "type=sql&metaData=" + encodeURIComponent( item.argument ); |
364 | 364 |
|
365 | 365 | if ( item.isAuthorized ) {
|
366 | 366 | if ( angular.isDefined( itemNext ) && itemNext.method === "SQL-BindValue" ) {
|
367 | 367 | data += "&bind=" + encodeURIComponent( itemNext.argument );
|
368 |
| - CommonAjaxService.getSQLBind( "sqlBind.pinpoint", data, function( result ) { |
| 368 | + CommonAjaxService.getSQLBind( "bind.pinpoint", data, function( result ) { |
369 | 369 | $("#customLogPopup").find("h4").html("SQL").end().find("div.modal-body").html(
|
370 | 370 | '<h4>Binded SQL <button class="btn btn-default btn-xs sql">Copy</button></h4>' +
|
371 | 371 | '<div style="position:absolute;left:10000px">' + result + '</div>' +
|
|
398 | 398 | if ( $(e.target).hasClass("json") ) {
|
399 | 399 | item = dataView.getItem(args.row);
|
400 | 400 | var itemNext = dataView.getItem(args.row+1);
|
401 |
| - var data = "json=" + encodeURIComponent( item.argument ); |
| 401 | + var data = "type=mongoJson&metaData=" + encodeURIComponent( item.argument ); |
402 | 402 |
|
403 | 403 | if ( item.isAuthorized ) {
|
404 | 404 | if ( angular.isDefined( itemNext ) && itemNext.method === "MONGO-JSON-BindValue" ) {
|
405 | 405 | data += "&bind=" + encodeURIComponent( itemNext.argument );
|
406 |
| - CommonAjaxService.getSQLBind( "jsonBind.pinpoint", data, function( result ) { |
| 406 | + CommonAjaxService.getSQLBind( "bind.pinpoint", data, function( result ) { |
407 | 407 | $("#customLogPopup").find("h4").html("JSON").end().find("div.modal-body").html(
|
408 | 408 | '<h4>Binded JSON <button class="btn btn-default btn-xs json">Copy</button></h4>' +
|
409 | 409 | '<div style="position:absolute;left:10000px">' + result + '</div>' +
|
|
0 commit comments