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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
renderjs
Commits
06446df4
Commit
06446df4
authored
Feb 28, 2013
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to control bootstrap process as sometimes it's not mandatory
render gadget immediately.
parent
e35862e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
renderjs.js
renderjs.js
+6
-4
No files found.
renderjs.js
View file @
06446df4
...
@@ -310,7 +310,7 @@ var RenderJs = (function () {
...
@@ -310,7 +310,7 @@ var RenderJs = (function () {
},
},
addGadget
:
function
(
dom_id
,
gadget_id
,
gadget
,
gadget_data_handler
,
addGadget
:
function
(
dom_id
,
gadget_id
,
gadget
,
gadget_data_handler
,
gadget_data_source
)
{
gadget_data_source
,
bootstrap
)
{
/*
/*
* add new gadget and render it
* add new gadget and render it
*/
*/
...
@@ -328,7 +328,9 @@ var RenderJs = (function () {
...
@@ -328,7 +328,9 @@ var RenderJs = (function () {
tab_gadget
=
tab_container
.
find
(
'
#
'
+
gadget_id
);
tab_gadget
=
tab_container
.
find
(
'
#
'
+
gadget_id
);
// render new gadget
// render new gadget
RenderJs
.
bootstrap
(
tab_container
);
if
(
bootstrap
!==
false
)
{
RenderJs
.
bootstrap
(
tab_container
);
}
return
tab_gadget
;
return
tab_gadget
;
},
},
...
@@ -493,13 +495,13 @@ var RenderJs = (function () {
...
@@ -493,13 +495,13 @@ var RenderJs = (function () {
},
},
addNewTabGadget
:
function
(
dom_id
,
gadget_id
,
gadget
,
gadget_data_handler
,
addNewTabGadget
:
function
(
dom_id
,
gadget_id
,
gadget
,
gadget_data_handler
,
gadget_data_source
)
{
gadget_data_source
,
bootstrap
)
{
/*
/*
* add new gadget and render it
* add new gadget and render it
*/
*/
var
tab_gadget
;
var
tab_gadget
;
tab_gadget
=
RenderJs
.
addGadget
(
tab_gadget
=
RenderJs
.
addGadget
(
dom_id
,
gadget_id
,
gadget
,
gadget_data_handler
,
gadget_data_source
dom_id
,
gadget_id
,
gadget
,
gadget_data_handler
,
gadget_data_source
,
bootstrap
);
);
// we should unregister all gadgets part of this TabbularGadget
// we should unregister all gadgets part of this TabbularGadget
...
...
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