Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
renderjs
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Klaus Wölfel
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 () {
var
start
=
function
()
{
require
([
'
overrides
'
,
'
jquery
'
,
'
jqm
'
,
'
jquery.json
'
,
'
renderjs
'
],
function
()
{
console
.
log
(
"
done loading
"
);
console
.
log
(
$
);
console
.
log
(
$
.
mobile
);
console
.
log
(
$
.
mobile
.
autoInitializePage
);
// START
if
(
$
.
mobile
.
autoInitializePage
===
false
)
{
// initialize JQM
$
.
mobile
.
initializePage
();
console
.
log
(
"
init JQM
"
);
// initialize renderJS
$
(
document
).
on
(
'
pagebeforeshow
'
,
'
div:jqmData(role="page")
'
,
function
()
{
// renderJS handler
RenderJs
.
init
();
// when all gadgets are loaded make sure JQM renders them
RenderJs
.
bindReady
(
function
()
{
console
.
log
(
"
bindReady called, trigger create
"
);
$
(
"
[data-gadget]
"
).
trigger
(
'
create
'
);
});
$
(
"
[data-gadget]
"
).
filter
(
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
};
});
});
\ 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