moksha/public/javascript/moksha.js | 8 +++-----
moksha/public/javascript/ui/moksha.ui.tabs.js | 6 +++---
2 files changed, 6 insertions(+), 8 deletions(-)
New commits:
commit e19396ed282dbf9672030a55370874fa0ef397eb
Author: John (J5) Palmieri <johnp(a)rawhide-virtualhost.localdomain>
Date: Tue Jun 29 14:36:57 2010 -0400
Fixes for IE8
* remove commas at the end of dictionaries. Most browsers can handle
dictionaries with a trailing comma:
{prop1:1, prop2:2,}
but IE can not parse that so it needs to look like:
{prop1:1, prop2:2}
* remove refrence to reserved word self (use _self where needed).
IE is very strict about using reserved words, even as members
of an object
diff --git a/moksha/public/javascript/moksha.js b/moksha/public/javascript/moksha.js
index 69b1337..d2a191f 100644
--- a/moksha/public/javascript/moksha.js
+++ b/moksha/public/javascript/moksha.js
@@ -559,8 +559,6 @@ moksha = {
},
ajax_load: function(path, params, callback, $overlay_div, data_type, loading_icon) {
- self = this;
-
if (typeof(params) == 'string') {
params = $.secureEvalJSON(params);
}
@@ -714,13 +712,13 @@ moksha = {
var defer_time = 1; // ms
var timeout = function () {
var closure = _moksha_deferred.shift();
- var self = closure[0];
+ var _self = closure[0];
var f = closure[1];
var args = closure[2];
if (!args)
args = [];
- f.apply(self, args);
+ f.apply(_self, args);
if (_moksha_deferred.length > 0)
setTimeout(timeout, defer_time);
}
@@ -791,7 +789,7 @@ moksha = {
_body: $.toJSON(body),
_header: {
delivery_properties: {
- routing_key: topic,
+ routing_key: topic
}
}
});
diff --git a/moksha/public/javascript/ui/moksha.ui.tabs.js b/moksha/public/javascript/ui/moksha.ui.tabs.js
index 9cf130a..cb64a27 100644
--- a/moksha/public/javascript/ui/moksha.ui.tabs.js
+++ b/moksha/public/javascript/ui/moksha.ui.tabs.js
@@ -42,7 +42,7 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
passPathRemainder:false,
// templates
- tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>',
+ tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>'
},
_create: function() {
this._findParentNav();
@@ -164,7 +164,7 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
$overlay.css({'opacity': .75,
'z-index': 99,
'background-color': 'white',
- 'position': 'absolute',
+ 'position': 'absolute'
}
)
@@ -638,7 +638,7 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
self.element.dequeue("tabs");
return this;
- },
+ }
});