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
b3cab7ac
Commit
b3cab7ac
authored
Sep 26, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add responsive classes without generating JQM table popup
parent
497c6db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
js/extensions.js
js/extensions.js
+18
-10
No files found.
js/extensions.js
View file @
b3cab7ac
...
...
@@ -495,6 +495,9 @@ $.widget( "mobile.table", $.mobile.table, {
this
.
_setToggleState
();
}
else
{
this
.
_setTableClasses
();
// add responsive CSS
this
.
_addResponsiveClassAndLabel
();
}
if
(
o
.
sort
)
{
this
.
_setSorting
();
...
...
@@ -530,33 +533,38 @@ $.widget( "mobile.table", $.mobile.table, {
});
},
_addToggles
:
function
(
menu
,
keep
)
{
var
opts
=
this
.
options
;
// allow update of menu on refresh (fixes #5880)
if
(
!
keep
)
{
menu
.
empty
();
}
_addResponsiveClassAndLabel
:
function
(
keep
)
{
var
o
=
this
.
options
;
// create the hide/show toggles
this
.
headers
.
not
(
"
td
"
).
each
(
function
()
{
var
header
=
$
(
this
),
priority
=
$
.
mobile
.
getAttribute
(
this
,
"
priority
"
,
true
),
cells
=
header
.
add
(
header
.
jqmData
(
"
cells
"
)
);
if
(
priority
)
{
cells
.
addClass
(
o
pts
.
classes
.
priorityPrefix
+
priority
);
cells
.
addClass
(
o
.
classes
.
priorityPrefix
+
priority
);
if
(
!
keep
)
{
$
(
"
<label><input type='checkbox' checked />
"
+
header
.
text
()
+
"
</label>
"
)
.
appendTo
(
menu
)
.
children
(
0
)
.
jqmData
(
"
cells
"
,
cells
)
.
checkboxradio
(
{
theme
:
o
pts
.
columnPopupTheme
theme
:
o
.
columnPopupTheme
});
}
}
});
},
_addToggles
:
function
(
menu
,
keep
)
{
var
opts
=
this
.
options
;
// allow update of menu on refresh (fixes #5880)
if
(
!
keep
)
{
menu
.
empty
();
}
this
.
_addResponsiveClassAndLabel
(
keep
);
// set bindings here
if
(
!
keep
)
{
...
...
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