http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73418
Revision: 73418
Author: dale
Date: 2010-09-20 23:05:42 +0000 (Mon, 20 Sep 2010)
Log Message:
-----------
added css rule to catch utf8 weirdness
Modified Paths:
--------------
branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/css/jPicker-1.1.5.css
branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/jpicker-1.1.5.js
Modified:
branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/css/jPicker-1.1.5.css
===================================================================
---
branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/css/jPicker-1.1.5.css
2010-09-20 23:03:58 UTC (rev 73417)
+++
branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/css/jPicker-1.1.5.css
2010-09-20 23:05:42 UTC (rev 73418)
@@ -1,222 +1,226 @@
-.jPicker .Icon {
- display: inline-block;
- height: 24px; /* change this value if using a different sized color picker
icon */
- position: relative; /* make this element an absolute positioning container */
- text-align: left; /* make the zero width children position to the left of
container */
- width: 25px; /* change this value if using a different sized color picker
icon */
-}
-.jPicker .Icon span.Color, .jPicker .Icon span.Alpha {
- background-position: 2px 2px;
- display: block;
- height: 100%;
- left: 0px;
- position: absolute;
- top: 0px;
- width: 100%;
-}
-.jPicker .Icon span.Image {
- background-repeat: no-repeat;
- cursor: pointer;
- display: block;
- height: 100%;
- left: 0px;
- position: absolute;
- top: 0px;
- width: 100%;
-}
-.jPicker.Container {
- z-index: 10;
-}
-table.jPicker {
- background-color: #efefef;
- border: 1px outset #666;
- font-family: Arial, Helvetica, Sans-Serif;
- font-size: 12px !important;
- margin: 0px;
- padding: 5px;
- width: 545px;
- z-index: 20;
-}
-.jPicker .Move {
- background-color: #dddddd;
- border-color: #fff #666 #666 #fff;
- border-style: solid;
- border-width: 1px;
- cursor: move;
- height: 12px;
- padding: 0px;
-}
-.jPicker .Title {
- font-size: 11px !important;
- font-weight: bold;
- margin: -2px 0px 0px 0px;
- padding: 0px;
- text-align: center;
- width: 100%;
-}
-.jPicker div.Map {
- border-bottom: 2px solid #fff;
- border-left: 2px solid #9a9a9a;
- border-right: 2px solid #fff;
- border-top: 2px solid #9a9a9a;
- cursor: crosshair;
- height: 260px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 256px later */
- margin: 0px 5px 0px 5px;
- overflow: hidden; /* hide the overdraw of the Color Map icon when at edge of
viewing box */
- padding: 0px;
- position: relative; /* make this element an absolute positioning container */
- width: 260px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 256px later */
-}
-.jPicker div[class="Map"] {
- height: 256px; /* correct to 256px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
- width: 256px; /* correct to 256px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
-}
-.jPicker div.Bar {
- border-bottom: 2px solid #fff;
- border-left: 2px solid #9a9a9a;
- border-right: 2px solid #fff;
- border-top: 2px solid #9a9a9a;
- cursor: n-resize;
- height: 260px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 256px later */
- margin: 12px 10px 0px 5px;
- overflow: hidden;
- padding: 0px;
- position: relative;
- width: 24px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 20px later */
-}
-.jPicker div[class="Bar"] {
- height: 256px; /* correct to 256px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
- width: 20px; /* correct to 20px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
-}
-.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3, .jPicker .Bar
.Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4, .jPicker
.Bar .Map5, .jPicker .Bar .Map6 {
- background-color: transparent;
- background-image: none;
- display: block;
- left: 0px;
- position: absolute;
- top: 0px;
-}
-.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3 {
- height: 2596px;
- width: 256px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity
for an absolutely positioned item in a relative container with "overflow:
visible". The marker in the colorBar
- would not be drawn if its overflow is set to hidden. */
-}
-.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar
.Map4 {
- height: 3896px;
- width: 20px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity
for an absolutely positioned item in a relative container with "overflow:
visible". The marker in the colorBar
- would not be drawn if its overflow is set to hidden. */
-}
-.jPicker .Bar .Map5, .jPicker .Bar .Map6 {
- height: 256px;
- width: 20px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity
for an absolutely positioned item in a relative container with "overflow:
visible". The marker in the colorBar
- would not be drawn if its overflow is set to hidden. */
-}
-.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Bar .Map6 {
- background-repeat: no-repeat;
-}
-.jPicker .Map .Map3, .jPicker .Bar .Map5 {
- background-repeat: repeat;
-}
-.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar
.Map4 {
- background-repeat: repeat-x;
-}
-.jPicker .Map .Arrow {
- display: block;
- position: absolute;
-}
-.jPicker .Bar .Arrow {
- display: block;
- left: 0px; /* (arrow width / 2) - (element width / 2) - position arrows'
center in elements' center */
- position: absolute;
-}
-.jPicker .Preview {
- font-size: 9px;
- text-align: center;
-}
-.jPicker .Preview div {
- border: 2px inset #eee;
- height: 62px;
- margin: 0px auto;
- padding: 0px;
- width: 62px;
-}
-.jPicker .Preview div span {
- border: 1px solid #000;
- display: block;
- height: 30px;
- margin: 0px auto;
- padding: 0px;
- width: 60px;
-}
-.jPicker .Preview .Active {
- border-bottom-width: 0px;
-}
-.jPicker .Preview .Current {
- border-top-width: 0px;
- cursor: pointer;
-}
-.jPicker .Button {
- text-align: center;
- width: 115px;
-}
-.jPicker .Button input {
- width: 100px;
-}
-.jPicker .Button .Ok {
- margin: 12px 0px 5px 0px;
-}
-
-.jPicker td.Radio {
- margin: 0px;
- padding: 0px;
- width: 31px;
-}
-.jPicker td.Radio input {
- margin: 0px 5px 0px 0px;
- padding: 0px;
-}
-.jPicker td.Text {
- font-size: 12px !important;
- height: 22px;
- margin: 0px;
- padding: 0px;
- text-align: left;
- width: 70px;
-}
-.jPicker tr.Hex td.Text {
- width: 100px;
-}
-.jPicker td.Text input {
- background-color: #fff;
- border: 1px inset #aaa;
- height: 19px;
- margin: 0px 0px 0px 5px;
- text-align: left;
- width: 30px;
-}
-.jPicker td[class="Text"] input {
- height: 15px;
-}
-.jPicker tr.Hex td.Text input.Hex {
- width: 50px;
-}
-.jPicker tr.Hex td.Text input.AHex {
- width: 20px;
-}
-.jPicker .Grid {
- text-align: center;
- width: 114px;
-}
-.jPicker .Grid span.QuickColor {
- border: 1px inset #aaa;
- cursor: pointer;
- display: inline-block;
- height: 15px;
- line-height: 15px;
- margin: 0px;
- padding: 0px;
- width: 19px;
-}
-.jPicker .Grid span[class="QuickColor"] {
- width: 17px;
-}
\ No newline at end of file
+.jPicker .utf8bugCatcher{
+}
+
+.jPicker .Icon {
+ display: inline-block;
+ height: 24px; /* change this value if using a different sized color picker
icon */
+ position: relative; /* make this element an absolute positioning container */
+ text-align: left; /* make the zero width children position to the left of
container */
+ width: 25px; /* change this value if using a different sized color picker
icon */
+}
+.jPicker .Icon span.Color, .jPicker .Icon span.Alpha {
+ background-position: 2px 2px;
+ display: block;
+ height: 100%;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+ width: 100%;
+}
+.jPicker .Icon span.Image {
+ background-repeat: no-repeat;
+ cursor: pointer;
+ display: block;
+ height: 100%;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+ width: 100%;
+}
+.jPicker.Container {
+ z-index: 10;
+}
+table.jPicker {
+ background-color: #efefef;
+ border: 1px outset #666;
+ font-family: Arial, Helvetica, Sans-Serif;
+ font-size: 12px !important;
+ margin: 0px;
+ padding: 5px;
+ width: 545px;
+ z-index: 20;
+}
+.jPicker .Move {
+ background-color: #dddddd;
+ border-color: #fff #666 #666 #fff;
+ border-style: solid;
+ border-width: 1px;
+ cursor: move;
+ height: 12px;
+ padding: 0px;
+}
+.jPicker .Title {
+ font-size: 11px !important;
+ font-weight: bold;
+ margin: -2px 0px 0px 0px;
+ padding: 0px;
+ text-align: center;
+ width: 100%;
+}
+.jPicker div.Map {
+ border-bottom: 2px solid #fff;
+ border-left: 2px solid #9a9a9a;
+ border-right: 2px solid #fff;
+ border-top: 2px solid #9a9a9a;
+ cursor: crosshair;
+ height: 260px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 256px later */
+ margin: 0px 5px 0px 5px;
+ overflow: hidden; /* hide the overdraw of the Color Map icon when at edge of
viewing box */
+ padding: 0px;
+ position: relative; /* make this element an absolute positioning container */
+ width: 260px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 256px later */
+}
+.jPicker div[class="Map"] {
+ height: 256px; /* correct to 256px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
+ width: 256px; /* correct to 256px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
+}
+.jPicker div.Bar {
+ border-bottom: 2px solid #fff;
+ border-left: 2px solid #9a9a9a;
+ border-right: 2px solid #fff;
+ border-top: 2px solid #9a9a9a;
+ cursor: n-resize;
+ height: 260px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 256px later */
+ margin: 12px 10px 0px 5px;
+ overflow: hidden;
+ padding: 0px;
+ position: relative;
+ width: 24px; /* IE 6 incorrectly draws border inside the width and height
instead of outside - We will fix this to 20px later */
+}
+.jPicker div[class="Bar"] {
+ height: 256px; /* correct to 256px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
+ width: 20px; /* correct to 20px for browsers that support the
"[class="xxx"]" selector (IE7+,Firefox,Safari,Chrome,Opera,etc.) */
+}
+.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3, .jPicker .Bar
.Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar .Map4, .jPicker
.Bar .Map5, .jPicker .Bar .Map6 {
+ background-color: transparent;
+ background-image: none;
+ display: block;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+}
+.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Map .Map3 {
+ height: 2596px;
+ width: 256px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity
for an absolutely positioned item in a relative container with "overflow:
visible". The marker in the colorBar
+ would not be drawn if its overflow is set to hidden. */
+}
+.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar
.Map4 {
+ height: 3896px;
+ width: 20px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity
for an absolutely positioned item in a relative container with "overflow:
visible". The marker in the colorBar
+ would not be drawn if its overflow is set to hidden. */
+}
+.jPicker .Bar .Map5, .jPicker .Bar .Map6 {
+ height: 256px;
+ width: 20px; /* must specify pixel width. IE7/8 Quirks mode ignores opacity
for an absolutely positioned item in a relative container with "overflow:
visible". The marker in the colorBar
+ would not be drawn if its overflow is set to hidden. */
+}
+.jPicker .Map .Map1, .jPicker .Map .Map2, .jPicker .Bar .Map6 {
+ background-repeat: no-repeat;
+}
+.jPicker .Map .Map3, .jPicker .Bar .Map5 {
+ background-repeat: repeat;
+}
+.jPicker .Bar .Map1, .jPicker .Bar .Map2, .jPicker .Bar .Map3, .jPicker .Bar
.Map4 {
+ background-repeat: repeat-x;
+}
+.jPicker .Map .Arrow {
+ display: block;
+ position: absolute;
+}
+.jPicker .Bar .Arrow {
+ display: block;
+ left: 0px; /* (arrow width / 2) - (element width / 2) - position arrows'
center in elements' center */
+ position: absolute;
+}
+.jPicker .Preview {
+ font-size: 9px;
+ text-align: center;
+}
+.jPicker .Preview div {
+ border: 2px inset #eee;
+ height: 62px;
+ margin: 0px auto;
+ padding: 0px;
+ width: 62px;
+}
+.jPicker .Preview div span {
+ border: 1px solid #000;
+ display: block;
+ height: 30px;
+ margin: 0px auto;
+ padding: 0px;
+ width: 60px;
+}
+.jPicker .Preview .Active {
+ border-bottom-width: 0px;
+}
+.jPicker .Preview .Current {
+ border-top-width: 0px;
+ cursor: pointer;
+}
+.jPicker .Button {
+ text-align: center;
+ width: 115px;
+}
+.jPicker .Button input {
+ width: 100px;
+}
+.jPicker .Button .Ok {
+ margin: 12px 0px 5px 0px;
+}
+
+.jPicker td.Radio {
+ margin: 0px;
+ padding: 0px;
+ width: 31px;
+}
+.jPicker td.Radio input {
+ margin: 0px 5px 0px 0px;
+ padding: 0px;
+}
+.jPicker td.Text {
+ font-size: 12px !important;
+ height: 22px;
+ margin: 0px;
+ padding: 0px;
+ text-align: left;
+ width: 70px;
+}
+.jPicker tr.Hex td.Text {
+ width: 100px;
+}
+.jPicker td.Text input {
+ background-color: #fff;
+ border: 1px inset #aaa;
+ height: 19px;
+ margin: 0px 0px 0px 5px;
+ text-align: left;
+ width: 30px;
+}
+.jPicker td[class="Text"] input {
+ height: 15px;
+}
+.jPicker tr.Hex td.Text input.Hex {
+ width: 50px;
+}
+.jPicker tr.Hex td.Text input.AHex {
+ width: 20px;
+}
+.jPicker .Grid {
+ text-align: center;
+ width: 114px;
+}
+.jPicker .Grid span.QuickColor {
+ border: 1px inset #aaa;
+ cursor: pointer;
+ display: inline-block;
+ height: 15px;
+ line-height: 15px;
+ margin: 0px;
+ padding: 0px;
+ width: 19px;
+}
+.jPicker .Grid span[class="QuickColor"] {
+ width: 17px;
+}
+
Modified:
branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/jpicker-1.1.5.js
===================================================================
--- branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/jpicker-1.1.5.js
2010-09-20 23:03:58 UTC (rev 73417)
+++ branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/jpicker-1.1.5.js
2010-09-20 23:05:42 UTC (rev 73418)
@@ -13,8 +13,7 @@
* Color Picker page:
(http://johndyer.name/post/2007/09/PhotoShop-like-JavaScript-Color-Picker.aspx)
*
*/
-(function($, version)
-{
+(function($, version) {
Math.precision = function(value, precision)
{
if (precision === undefined) precision = 0;
@@ -719,7 +718,7 @@
function()
{
changeEvents = null;
- }
+ };
$.extend(true, $this, // public properties and methods
{
val: val,
@@ -1982,4 +1981,5 @@
}
}
};
+
})(jQuery, '1.1.5');
\ No newline at end of file
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs