mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
This reverts commit b6113ae0e536dc3fe2a4bc8b8df53a84ae8427cc.
This commit is contained in:
parent
d7b954be25
commit
c7d2cfba15
@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
include '../bootstrap.php';
|
||||
|
||||
$debugbarRenderer->setBaseUrl('../../src/DebugBar/Resources');
|
||||
|
||||
$debugbar['messages']->addMessage('I\'m a IFRAME');
|
||||
|
||||
render_demo_page(function() {
|
||||
?>
|
||||
<iframe src="iframe2.php" style="display:none;"></iframe>
|
||||
<?php
|
||||
});
|
@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
include '../bootstrap.php';
|
||||
|
||||
$debugbarRenderer->setBaseUrl('../../src/DebugBar/Resources');
|
||||
|
||||
$debugbar['messages']->addMessage('I\'m a Deeper Hidden Iframe');
|
||||
|
||||
render_demo_page(function() {});
|
@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
include '../bootstrap.php';
|
||||
|
||||
$debugbarRenderer->setBaseUrl('../../src/DebugBar/Resources');
|
||||
|
||||
$debugbar['messages']->addMessage('Top Page(Main debugbar)');
|
||||
|
||||
render_demo_page(function() {
|
||||
?>
|
||||
<iframe src="iframe1.php" height="350" style="width:100%;"></iframe>
|
||||
<?php
|
||||
});
|
@ -31,10 +31,6 @@ render_demo_page(function() {
|
||||
<li><a href="ajax.php" class="ajax">load ajax content</a></li>
|
||||
<li><a href="ajax_exception.php" class="ajax">load ajax content with exception</a></li>
|
||||
</ul>
|
||||
<h2>IFRAMES</h2>
|
||||
<ul>
|
||||
<li><a href="iframes/index.php">load through iframes</a></li>
|
||||
</ul>
|
||||
<h2>Stack</h2>
|
||||
<ul>
|
||||
<li><a href="stack.php">perform a redirect</a></li>
|
||||
|
@ -424,7 +424,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
this.activePanelName = null;
|
||||
this.datesetTitleFormater = new DatasetTitleFormater(this);
|
||||
this.options.bodyMarginBottomHeight = parseInt($('body').css('margin-bottom'));
|
||||
this.hasParent = window.parent && window.parent.phpdebugbar && window.parent.phpdebugbar != this;
|
||||
this.registerResizeHandler();
|
||||
},
|
||||
|
||||
@ -434,7 +433,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
* @this {DebugBar}
|
||||
*/
|
||||
registerResizeHandler: function() {
|
||||
if (typeof this.resize.bind == 'undefined' || this.hasParent) return;
|
||||
if (typeof this.resize.bind == 'undefined') return;
|
||||
|
||||
var f = this.resize.bind(this);
|
||||
this.respCSSSize = 0;
|
||||
@ -475,10 +474,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
* @this {DebugBar}
|
||||
*/
|
||||
render: function() {
|
||||
if (this.hasParent) {
|
||||
this.$el.hide();
|
||||
}
|
||||
|
||||
var self = this;
|
||||
this.$el.appendTo('body');
|
||||
this.$dragCapture = $('<div />').addClass(csscls('drag-capture')).appendTo(this.$el);
|
||||
@ -578,7 +573,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
* @this {DebugBar}
|
||||
*/
|
||||
restoreState: function() {
|
||||
if (this.hasParent) return;
|
||||
// bar height
|
||||
var height = localStorage.getItem('phpdebugbar-height');
|
||||
this.setHeight(height || this.$body.height());
|
||||
@ -929,15 +923,6 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
* @return {String} Dataset's id
|
||||
*/
|
||||
addDataSet: function(data, id, suffix, show) {
|
||||
if (this.hasParent) {
|
||||
if (!suffix || ('(iframe)').indexOf(suffix) < 0) {
|
||||
suffix = '(iframe)' + (suffix || '');
|
||||
}
|
||||
|
||||
window.parent.phpdebugbar.addDataSet(data, id, suffix, show);
|
||||
return;
|
||||
}
|
||||
|
||||
var label = this.datesetTitleFormater.format(id, data, suffix);
|
||||
id = id || (getObjectSize(this.datasets) + 1);
|
||||
this.datasets[id] = data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user