Commit 9c08fd29 authored by Sven Franck's avatar Sven Franck

app: fixed bugs

parent 52ea6a9e
......@@ -1642,7 +1642,10 @@
if (has_link) {
target = factory.element({
"type": "a",
"direct": {"className": "ui-link ui-carousel-selector"}
"direct": {
"href": has_link,
"className": "ui-link ui-carousel-selector"
}
});
} else {
target = item;
......@@ -1688,13 +1691,13 @@
"direct": {
"role": "carousel",
"className": (spec.class_list || empty_string) + " ui-carousel " +
(is_thumb ? " ui-carousel-thumbnails " : " ui-carousel-bullets" +
(is_thumb ? " ui-carousel-thumbnails " : " ui-carousel-bullets " +
((has_handles ? " ui-carousel-handles" : empty_string) +
(spec.shadow ? " ui-shadow" : empty_string) +
(spec.captions ? " ui-carousel-captions" : empty_string) +
(spec.inset ? " ui-carousel-inset" : empty_string) +
(spec.corners ? " ui-corner-all" : empty_string))) +
("ui-body-" + (spec.theme || "inherit"))
(" ui-body-" + (spec.theme || "inherit"))
},
"attributes": {
"data-enhanced": true,
......@@ -3289,7 +3292,9 @@
**/
// TODO: allow to run multiple mappers eg formItem + tableRow
map.element = function (element, wrapper, i) {
console.log(element)
if (wrapper.child_mapper) {
console.log("Child mapper...");
if (element.scheme) {
// NOTE: chaining allows the mapper to make additional async requests!
return map[wrapper.child_mapper]({
......@@ -3313,6 +3318,7 @@
})
.fail(app.util.error);
}
console.log("OUT")
return RSVP.resolve(wrapper.child_constructor({
"item": element,
"wrapper": wrapper,
......@@ -3397,6 +3403,8 @@
var quirk_dict, section, pos, label, j, k, field, setter, record, new_item,
id, key, obj, translation_fields, item;
console.log("HELLO")
console.log(spec)
translation_fields = "titletextlabel";
quirk_dict = spec.wrapper.property_dict;
item = spec.item;
......@@ -6643,24 +6651,26 @@
app.init.testSupport = function (property_list) {
var j, no_support, fail, message;
if (Modernizr) {
fail = "";
for (j = 0; j < property_list.length; j += 1) {
if (Modernizr[property_list[j]] === false) {
no_support = true;
fail += property_list[j] + "|";
if (property_list.length > 0) {
if (Modernizr) {
fail = "";
for (j = 0; j < property_list.length; j += 1) {
if (Modernizr[property_list[j]] === false) {
no_support = true;
fail += property_list[j] + "|";
}
}
}
if (no_support) {
message = fail.splice(0, -1);
app.util.error("browser: " + message + " not supported");
if (no_support) {
message = fail.splice(0, -1);
app.util.error("browser: " + message + " not supported");
factory.util.noItems({"message": message});
return false;
factory.util.noItems({"message": message});
return false;
}
return true;
}
return true;
app.util.error("testSupport: Modernizr requested but undefined");
}
app.util.error("testSupport: Modernizr requested but undefined");
return true;
};
......
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