Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
85879a14
Commit
85879a14
authored
May 01, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: enhance elements added/updated dynamically
parent
38ef83bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
js/erp5_loader.js
js/erp5_loader.js
+8
-7
No files found.
js/erp5_loader.js
View file @
85879a14
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment