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
069effe7
Commit
069effe7
authored
May 12, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext/JQM: updated to latest version (1.5pre)
parent
0209be4f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
177 additions
and
358 deletions
+177
-358
ext/libs/jquery-mobile/extensions.js
ext/libs/jquery-mobile/extensions.js
+0
-302
ext/libs/jquery-mobile/jquery-mobile.css
ext/libs/jquery-mobile/jquery-mobile.css
+2
-7
ext/libs/jquery-mobile/jquery-mobile.js
ext/libs/jquery-mobile/jquery-mobile.js
+175
-49
No files found.
ext/libs/jquery-mobile/extensions.js
View file @
069effe7
...
@@ -1260,305 +1260,3 @@ $.widget( "mobile.collapsibleset", $.extend( {
...
@@ -1260,305 +1260,3 @@ $.widget( "mobile.collapsibleset", $.extend( {
})(
jQuery
);
})(
jQuery
);
/* ========================= SELECT ========================= */
(
function
(
$
,
undefined
)
{
$
.
widget
(
"
mobile.selectmenu
"
,
$
.
extend
(
{
initSelector
:
"
select:not( :jqmData(role='slider')):not( :jqmData(role='flipswitch') )
"
,
options
:
{
theme
:
null
,
disabled
:
false
,
icon
:
"
carat-d
"
,
iconpos
:
"
right
"
,
inline
:
false
,
corners
:
true
,
shadow
:
true
,
iconshadow
:
false
,
/* TODO: Deprecated in 1.4, remove in 1.5. */
overlayTheme
:
null
,
dividerTheme
:
null
,
hidePlaceholderMenuItems
:
true
,
closeText
:
"
Close
"
,
nativeMenu
:
true
,
// This option defaults to true on iOS devices.
preventFocusZoom
:
/iPhone|iPad|iPod/
.
test
(
navigator
.
platform
)
&&
navigator
.
userAgent
.
indexOf
(
"
AppleWebKit
"
)
>
-
1
,
mini
:
false
,
enhanced
:
false
},
_button
:
function
()
{
return
$
(
"
<div/>
"
);
},
_setDisabled
:
function
(
value
)
{
this
.
element
.
attr
(
"
disabled
"
,
value
);
this
.
button
.
attr
(
"
aria-disabled
"
,
value
);
return
this
.
_setOption
(
"
disabled
"
,
value
);
},
_focusButton
:
function
()
{
var
self
=
this
;
setTimeout
(
function
()
{
self
.
button
.
focus
();
},
40
);
},
_selectOptions
:
function
()
{
return
this
.
select
.
find
(
"
option
"
);
},
_destroy
:
function
()
{
var
wrapper
=
this
.
element
.
parents
(
"
.ui-select
"
);
if
(
wrapper
.
length
>
0
)
{
if
(
wrapper
.
is
(
"
.ui-btn-left, .ui-btn-right
"
)
)
{
this
.
element
.
addClass
(
wrapper
.
hasClass
(
"
ui-btn-left
"
)
?
"
ui-btn-left
"
:
"
ui-btn-right
"
);
}
this
.
element
.
insertAfter
(
wrapper
);
wrapper
.
remove
();
}
},
_enhance
:
function
()
{
// setup items that are generally necessary for select menu extension
var
classes
,
o
=
this
.
options
,
el
=
this
.
element
[
0
],
iconpos
=
o
.
icon
?
(
o
.
iconpos
||
el
.
getAttribute
(
"
data-iconpos
"
)
)
:
false
;
// TODO: move all(?) classes on wrapper or only ui-btn-left/right?
classes
=
el
.
className
+
(
o
.
mini
||
el
.
getAttribute
(
"
data-mini
"
))
?
"
ui-mini
"
:
""
+
(
o
.
inline
||
el
.
getAttribute
(
"
data-inline
"
))
?
"
ui-btn-inline
"
:
""
;
this
.
select
=
this
.
element
.
removeClass
(
"
ui-btn-left ui-btn-right
"
).
wrap
(
"
<div class='ui-select
"
+
classes
+
"
'>
"
);
this
.
selectId
=
this
.
select
.
attr
(
"
id
"
)
||
(
"
select-
"
+
this
.
uuid
);
this
.
buttonId
=
this
.
selectId
+
"
-button
"
;
this
.
label
=
$
(
"
label[for='
"
+
this
.
selectId
+
"
']
"
);
this
.
button
=
this
.
_button
()
.
insertBefore
(
this
.
select
)
.
attr
(
"
id
"
,
this
.
buttonId
)
.
addClass
(
"
ui-btn
"
+
(
o
.
icon
?
(
"
ui-icon-
"
+
o
.
icon
+
"
ui-btn-icon-
"
+
iconpos
+
(
o
.
iconshadow
?
"
ui-shadow-icon
"
:
""
)
)
:
""
)
+
/* TODO: Remove in 1.5. */
(
o
.
theme
?
"
ui-btn-
"
+
o
.
theme
:
""
)
+
(
o
.
corners
?
"
ui-corner-all
"
:
""
)
+
(
o
.
shadow
?
"
ui-shadow
"
:
""
)
);
// Add button text placeholder
this
.
buttonText
=
$
(
"
<span>
"
)
.
appendTo
(
this
.
button
);
this
.
_setMultiple
();
// Add counter for multi selects
if
(
this
.
isMultiple
)
{
this
.
buttonCount
=
$
(
"
<span>
"
)
.
addClass
(
"
ui-li-count ui-body-inherit
"
)
.
hide
()
.
appendTo
(
this
.
button
.
addClass
(
"
ui-li-has-count
"
)
);
}
},
_setMultiple
:
function
()
{
// TODO: are multiples supported in regular select?
this
.
isMultiple
=
this
.
select
[
0
].
multiple
;
},
_create
:
function
()
{
var
self
=
this
,
o
=
this
.
options
;
if
(
o
.
enhanced
)
{
this
.
button
=
this
.
element
.
parent
();
this
.
select
=
this
.
element
;
this
.
selectId
=
this
.
select
[
0
].
id
;
this
.
buttonId
=
this
.
button
[
0
].
id
;
this
.
label
=
this
.
element
.
prev
(
"
label
"
);
this
.
buttonText
=
this
.
button
.
find
(
"
span
"
).
first
();
this
.
_setMultiple
();
if
(
this
.
isMultiple
)
{
this
.
buttonCount
=
this
.
button
.
find
(
"
span
"
).
last
();
}
}
else
{
this
.
_enhance
();
}
this
.
setButtonText
();
// Opera does not properly support opacity on select elements
// In Mini, it hides the element, but not its text
// On the desktop,it seems to do the opposite
// for these reasons, using the nativeMenu option results in a full native select in Opera
if
(
o
.
nativeMenu
&&
window
.
opera
&&
window
.
opera
.
version
)
{
this
.
button
.
addClass
(
"
ui-select-nativeonly
"
);
}
// Disable if specified
if
(
o
.
disabled
||
this
.
element
.
attr
(
"
disabled
"
))
{
this
.
disable
();
}
// Events on native select
this
.
select
.
change
(
function
()
{
self
.
refresh
();
if
(
!!
o
.
nativeMenu
)
{
this
.
blur
();
}
});
this
.
_handleFormReset
();
this
.
_on
(
this
.
button
,
{
keydown
:
"
_handleKeydown
"
});
this
.
build
();
},
build
:
function
()
{
var
self
=
this
;
this
.
select
.
appendTo
(
self
.
button
)
.
bind
(
"
vmousedown
"
,
function
()
{
// Add active class to button
self
.
button
.
addClass
(
$
.
mobile
.
activeBtnClass
);
})
.
bind
(
"
focus
"
,
function
()
{
self
.
button
.
addClass
(
$
.
mobile
.
focusClass
);
})
.
bind
(
"
blur
"
,
function
()
{
self
.
button
.
removeClass
(
$
.
mobile
.
focusClass
);
})
.
bind
(
"
focus vmouseover
"
,
function
()
{
self
.
button
.
trigger
(
"
vmouseover
"
);
})
.
bind
(
"
vmousemove
"
,
function
()
{
// Remove active class on scroll/touchmove
self
.
button
.
removeClass
(
$
.
mobile
.
activeBtnClass
);
})
.
bind
(
"
change blur vmouseout
"
,
function
()
{
self
.
button
.
trigger
(
"
vmouseout
"
)
.
removeClass
(
$
.
mobile
.
activeBtnClass
);
});
// In many situations, iOS will zoom into the select upon tap, this prevents that from happening
self
.
button
.
bind
(
"
vmousedown
"
,
function
()
{
if
(
self
.
options
.
preventFocusZoom
)
{
$
.
mobile
.
zoom
.
disable
(
true
);
}
});
self
.
label
.
bind
(
"
click focus
"
,
function
()
{
if
(
self
.
options
.
preventFocusZoom
)
{
$
.
mobile
.
zoom
.
disable
(
true
);
}
});
self
.
select
.
bind
(
"
focus
"
,
function
()
{
if
(
self
.
options
.
preventFocusZoom
)
{
$
.
mobile
.
zoom
.
disable
(
true
);
}
});
self
.
button
.
bind
(
"
mouseup
"
,
function
()
{
if
(
self
.
options
.
preventFocusZoom
)
{
setTimeout
(
function
()
{
$
.
mobile
.
zoom
.
enable
(
true
);
},
0
);
}
});
self
.
select
.
bind
(
"
blur
"
,
function
()
{
if
(
self
.
options
.
preventFocusZoom
)
{
$
.
mobile
.
zoom
.
enable
(
true
);
}
});
},
selected
:
function
()
{
return
this
.
_selectOptions
().
filter
(
"
:selected
"
);
},
selectedIndices
:
function
()
{
var
self
=
this
;
return
this
.
selected
().
map
(
function
()
{
return
self
.
_selectOptions
().
index
(
this
);
}).
get
();
},
setButtonText
:
function
()
{
var
self
=
this
,
selected
=
this
.
selected
(),
text
=
this
.
placeholder
,
span
=
this
.
buttonText
;
this
.
button
.
children
(
"
span
"
).
not
(
"
.ui-li-count
"
).
remove
().
end
().
end
().
prepend
(
(
function
()
{
if
(
selected
.
length
)
{
text
=
selected
.
map
(
function
()
{
return
$
(
this
).
text
();
}).
get
().
join
(
"
,
"
);
}
else
{
text
=
self
.
placeholder
;
}
if
(
text
)
{
span
.
text
(
text
);
}
else
{
span
.
html
(
"
"
);
}
// TODO possibly aggregate multiple select option classes
return
this
.
buttonText
=
span
.
addClass
(
self
.
select
.
attr
(
"
class
"
)
)
.
addClass
(
selected
.
attr
(
"
class
"
)
)
.
removeClass
(
"
ui-screen-hidden
"
);
})());
},
setButtonCount
:
function
()
{
var
selected
=
this
.
selected
();
// multiple count inside button
if
(
this
.
isMultiple
)
{
this
.
buttonCount
[
selected
.
length
>
1
?
"
show
"
:
"
hide
"
]().
text
(
selected
.
length
);
}
},
_handleKeydown
:
function
(
/* event */
)
{
this
.
_delay
(
"
_refreshButton
"
);
},
_reset
:
function
()
{
this
.
refresh
();
},
_refreshButton
:
function
()
{
this
.
setButtonText
();
this
.
setButtonCount
();
},
refresh
:
function
()
{
this
.
_refreshButton
();
},
// open and close preserved in native selects
// to simplify users code when looping over selects
open
:
$
.
noop
,
close
:
$
.
noop
,
disable
:
function
()
{
this
.
_setDisabled
(
true
);
this
.
button
.
addClass
(
"
ui-state-disabled
"
);
},
enable
:
function
()
{
this
.
_setDisabled
(
false
);
this
.
button
.
removeClass
(
"
ui-state-disabled
"
);
}
},
$
.
mobile
.
behaviors
.
formReset
)
);
})(
jQuery
);
ext/libs/jquery-mobile/jquery-mobile.css
View file @
069effe7
/*!
/*!
* jQuery Mobile 1.
4.3
pre
* jQuery Mobile 1.
5.0
pre
* Git HEAD hash:
77b5304ec0510824e6f014e6caf716701db6abd2 <> Date: Thu Mar 6 2014 16:14
:07 UTC
* Git HEAD hash:
39fe09ebf3d40321b7d7c389c1b5676b01093971 <> Date: Tue May 6 2014 09:33
:07 UTC
* http://jquerymobile.com
* http://jquerymobile.com
*
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
...
@@ -2501,7 +2501,6 @@ button.ui-btn-icon-notext,
...
@@ -2501,7 +2501,6 @@ button.ui-btn-icon-notext,
width
:
78%
;
width
:
78%
;
-webkit-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
/* ui-hide-label deprecated in 1.4. TODO: Remove in 1.5 */
/* ui-hide-label deprecated in 1.4. TODO: Remove in 1.5 */
...
@@ -3854,7 +3853,6 @@ input.ui-slider-input {
...
@@ -3854,7 +3853,6 @@ input.ui-slider-input {
appearance
:
none
;
appearance
:
none
;
-webkit-box-sizing
:
content-box
;
-webkit-box-sizing
:
content-box
;
-moz-box-sizing
:
content-box
;
-moz-box-sizing
:
content-box
;
-ms-box-sizing
:
content-box
;
box-sizing
:
content-box
;
box-sizing
:
content-box
;
}
}
.ui-slider-input
::-webkit-outer-spin-button
,
.ui-slider-input
::-webkit-outer-spin-button
,
...
@@ -4077,7 +4075,6 @@ textarea.ui-input-text {
...
@@ -4077,7 +4075,6 @@ textarea.ui-input-text {
width
:
100%
;
width
:
100%
;
-webkit-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
outline
:
0
;
outline
:
0
;
}
}
...
@@ -4251,7 +4248,6 @@ textarea.ui-input-text.ui-textinput-autogrow {
...
@@ -4251,7 +4248,6 @@ textarea.ui-input-text.ui-textinput-autogrow {
border-style
:
solid
;
border-style
:
solid
;
-webkit-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
-ms-box-sizing
:
border-box
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-radius
:
inherit
;
border-radius
:
inherit
;
overflow
:
visible
;
overflow
:
visible
;
...
@@ -4269,7 +4265,6 @@ html .ui-popup .ui-field-contain > label + .ui-flipswitch {
...
@@ -4269,7 +4265,6 @@ html .ui-popup .ui-field-contain > label + .ui-flipswitch {
width
:
5.875em
;
/* If you override the width for .ui-flipswitch you should repeat the same value here */
width
:
5.875em
;
/* If you override the width for .ui-flipswitch you should repeat the same value here */
-webkit-box-sizing
:
content-box
;
-webkit-box-sizing
:
content-box
;
-moz-box-sizing
:
content-box
;
-moz-box-sizing
:
content-box
;
-ms-box-sizing
:
content-box
;
box-sizing
:
content-box
;
box-sizing
:
content-box
;
}
}
.ui-field-contain
.ui-flipswitch.ui-flipswitch-active
,
.ui-field-contain
.ui-flipswitch.ui-flipswitch-active
,
...
...
ext/libs/jquery-mobile/jquery-mobile.js
View file @
069effe7
This diff is collapsed.
Click to expand it.
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