Commit 85879a14 authored by Sven Franck's avatar Sven Franck

app: enhance elements added/updated dynamically

parent 38ef83bb
......@@ -2725,17 +2725,16 @@
"attributes": {
"data-action": "search",
"data-enhanced": "true",
"placeholder": spec.text,
"data-icon": "search",
"data-action-btn": "true",
"data-type": "search",
"type": "search"
"type": "search",
"data-i18n": "[placeholder]" + spec.text_i18n || ""
},
"logic": {
"clear": "true",
"action": "search",
"data-i18n": spec.text_i18n ?
("[placeholder]" + spec.text_i18n) : null
"add_label": false
}
};
};
......@@ -2763,7 +2762,7 @@
}
return {
"config": {
"config": spec.no_wrap ? element_list[0] : {
"generate": "widget",
"type": "controlbar",
"property_dict": props,
......@@ -2929,7 +2928,7 @@
element.appendChild(content);
})
.then(function () {
$el = $(element);
$el = $(element).enhanceWithin();
// TODO: un-jQuery eventually...
switch ($el.data("role")) {
......@@ -2937,8 +2936,8 @@
$el.popup("reposition", {"positionto": "window"});
break;
}
$el.enhanceWithin();
})
.then(app.setPageBindings)
.fail(app.util.error);
}
}
......@@ -6881,6 +6880,8 @@
util.deleteChildren(update_target);
update_target.appendChild(wrapper.fragment);
update_target.appendChild(detach);
// NOTE: must JQM stuff that has been added
$(update_target).enhanceWithin();
// CREATE
} else {
......
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