Author: lindner
Date: Mon Mar 3 18:40:35 2008
New Revision: 633353
URL: http://svn.apache.org/viewvc?rev=633353&view=rev
Log:
add a debug option to get js without compression, fix class/id problem for
SHINDIG-105
Modified:
incubator/shindig/trunk/javascript/container/gadgets.js
Modified: incubator/shindig/trunk/javascript/container/gadgets.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/javascript/container/gadgets.js?rev=633353&r1=633352&r2=633353&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/container/gadgets.js (original)
+++ incubator/shindig/trunk/javascript/container/gadgets.js Mon Mar 3 18:40:35
2008
@@ -362,6 +362,8 @@
* "title": the default title to use for the title bar.
* "height": height of the gadget
* "width": width of the gadget
+ * "debug": send debug=1 to the gadget server, gets us uncompressed
+ * javascript
*/
gadgets.Gadget = function(params) {
this.userPrefs_ = {};
@@ -465,7 +467,7 @@
gadgets.IfrGadget.prototype.getTitleBarContent = function(continuation) {
continuation('<div id="' + this.cssClassTitleBar + '-' + this.id +
- 'class="' + this.cssClassTitleBar + '"><span id="' +
+ '" class="' + this.cssClassTitleBar + '"><span id="' +
this.getIframeId() + '_title" class="' +
this.cssClassTitle + '">' + (this.title ? this.title : 'Title') +
'</span> | <span class="' +
this.cssClassTitleButtonBar +
@@ -519,7 +521,8 @@
'&country=' + gadgets.container.country_ +
'&lang=' + gadgets.container.language_ +
'&view=' + gadgets.container.view_ +
- this.getUserPrefsParams() +
+ (this.debug ? '&debug=1' : '') +
+ this.getUserPrefsParams() +
'#rpctoken=' + this.rpcToken +
(this.secureToken ? '&st=' + (this.secureToken || "") : '') +
(this.viewParams ?