Commit 1f0ad0ff authored by Sven Franck's avatar Sven Franck

quote all object keys for Safari

parent e83d9fc7
......@@ -53,7 +53,7 @@
*/
// TODO: figure out a way to translate per gadget!
// TODO: figure out why pagebeforeshow does not trigger on the first page
translate: function (obj, language, init) {
"translate": function (obj, language, init) {
var class_list,
new_language,
tag = obj.element.tagName,
......@@ -104,7 +104,7 @@
* @method submit
* @param {object} obj Action Object
*/
add: function (obj) {
"add": function (obj) {
init.add(obj);
},
......@@ -113,7 +113,7 @@
* @method jump
* @param {object} obj Action Object
*/
browse: function (obj) {
"browse": function (obj) {
util.setPopupContentPointer(obj, "browse");
},
......@@ -122,7 +122,7 @@
* @method tasks
* @param {object} obj Action Object
*/
tasks: function (obj) {
"tasks": function (obj) {
util.setPopupContentPointer(obj, "tasks");
},
......@@ -150,7 +150,7 @@
* @param {object} obj Action Object
* @param {string} value Value of select
*/
limit: function (obj, value) {
"limit": function (obj, value) {
init.paginate(obj, "limit", value);
},
......@@ -159,7 +159,7 @@
* @method first
* @param {object} obj Action Object
*/
first: function (obj) {
"first": function (obj) {
init.paginate(obj, "first");
},
......@@ -168,7 +168,7 @@
* @method last
* @param {object} obj Action Object
*/
last: function (obj) {
"last": function (obj) {
init.paginate(obj, "last");
},
......@@ -177,7 +177,7 @@
* @method prev
* @param {object} obj Action Object
*/
prev: function (obj) {
"prev": function (obj) {
init.paginate(obj, "prev");
},
......@@ -186,7 +186,7 @@
* @method next
* @param {object} obj Action Object
*/
next: function (obj) {
"next": function (obj) {
init.paginate(obj, "next");
},
......@@ -195,7 +195,7 @@
* @method sort
* @param {object} obj Action Object
*/
sort: function (obj) {
"sort": function (obj) {
// sorting 5-states (none|abc_asc|123_asc|abc_desc|123_desc)
switch (obj.element.getAttribute("data-direction")) {
case "desc_abc":
......@@ -226,7 +226,7 @@
* @method check
* @param {object} obj Action Object
*/
check: function (obj) {
"check": function (obj) {
init.check(obj, undefined);
},
......@@ -235,7 +235,7 @@
* @method check_all_visible
* @param {object} obj Action Object
*/
check_all_visible: function (obj) {
"check_all_visible": function (obj) {
init.check(obj, false);
},
......@@ -245,7 +245,7 @@
* @param {object} obj Action Object
*/
// NOTE: checkbox has 3 states (this hijacks indeterminate state!!!)
check_all: function (obj) {
"check_all": function (obj) {
var checkbox = obj.element,
label = checkbox.previousSibling;
......@@ -280,7 +280,7 @@
* @method search
* @param {object} obj Action Object
*/
search: function (obj) {
"search": function (obj) {
init.search(obj);
}
};
......@@ -299,7 +299,7 @@
// category? Lot of queries
// TODO: add remaining mapping!
// TODO: bad because not generic! Try!!!
mapListItems: function (items, replace) {
"mapListItems": function (items, replace) {
var property,
obj,
i,
......@@ -391,7 +391,7 @@
* @param {string} value Value to set this field to
* @returns {object} config Configuration object to pass to factory
*/
mapFormField: function (spec, overrides, value) {
"mapFormField": function (spec, overrides, value) {
var validation_list,
class_list,
element,
......@@ -522,11 +522,11 @@
"rows": prevail.widget.width || spec.widget.width || undefined,
"cols": prevail.widget.height || spec.widget.height || undefined,
"disabled": (prevail.properties.enabled || spec.properties.enabled) ?
undefined : true,
(undefined) : true,
"value": (value || (prevail.widget.default === 0 ? "0" :
prevail.widget.default) || spec.widget.default || undefined),
"readonly": (prevail.properties.editable === false ||
spec.properties.editable === false) ? true : undefined,
spec.properties.editable === false) ? (true) : undefined,
"options": (prevail.widget.items || spec.widget.items) ?
([
prevail.widget.items || spec.widget.items || null,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment