Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
renderjs
Commits
11d56a4b
Commit
11d56a4b
authored
Feb 08, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jqm_3: fixed gadget rendering on subsequent pages
parent
e66eda08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
examples/jqm_3/css/images/ajax-loader.gif
examples/jqm_3/css/images/ajax-loader.gif
+0
-0
examples/jqm_3/css/images/icons-18-white.png
examples/jqm_3/css/images/icons-18-white.png
+0
-0
examples/jqm_3/js/controller.js
examples/jqm_3/js/controller.js
+21
-16
No files found.
examples/jqm_3/css/images/ajax-loader.gif
0 → 100644
View file @
11d56a4b
7.64 KB
examples/jqm_3/css/images/icons-18-white.png
0 → 100644
View file @
11d56a4b
1.94 KB
examples/jqm_3/js/controller.js
View file @
11d56a4b
...
@@ -8,26 +8,31 @@ define([], function () {
...
@@ -8,26 +8,31 @@ define([], function () {
var
start
=
function
()
{
var
start
=
function
()
{
require
([
'
overrides
'
,
'
jquery
'
,
'
jqm
'
,
'
jquery.json
'
,
'
renderjs
'
],
require
([
'
overrides
'
,
'
jquery
'
,
'
jqm
'
,
'
jquery.json
'
,
'
renderjs
'
],
function
()
{
function
()
{
console
.
log
(
"
done loading
"
);
console
.
log
(
$
);
$
(
document
).
on
(
'
pagebeforeshow
'
,
'
div:jqmData(role="page")
'
,
function
()
{
console
.
log
(
$
.
mobile
);
console
.
log
(
$
.
mobile
.
autoInitializePage
);
// renderJS handler
// START
if
(
$
.
mobile
.
autoInitializePage
===
false
)
{
// initialize JQM
$
.
mobile
.
initializePage
();
console
.
log
(
"
init JQM
"
);
// initialize renderJS
RenderJs
.
init
();
RenderJs
.
init
();
// when all gadgets are loaded make sure JQM renders them
RenderJs
.
bindReady
(
RenderJs
.
bindReady
(
function
()
{
function
()
{
console
.
log
(
"
bindReady called, trigger create
"
);
$
(
"
[data-gadget]
"
).
filter
(
$
(
"
[data-gadget]
"
).
trigger
(
'
create
'
);
function
()
{
});
return
$
(
this
).
jqmData
(
"
bound
"
)
!==
true
;
}
).
each
(
function
()
{
$
(
this
).
jqmData
(
"
bound
"
,
true
).
trigger
(
'
create
'
);
}
)
}
);
});
// initialize JQM
if
(
$
.
mobile
.
autoInitializePage
===
false
)
{
$
.
mobile
.
initializePage
();
}
}
});
});
};
};
return
{
"
start
"
:
start
};
return
{
"
start
"
:
start
};
});
});
\ No newline at end of file
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