Permalink
Browse files

Issue 1 - Changing image src while creating node is obsolete

  • Loading branch information...
1 parent e9de3cc commit ab8a728a4610f913dbe0c2f5d9a8bb35f07ff4b3 @mletynski committed Apr 14, 2012
Showing with 12 additions and 6 deletions.
  1. +5 −3 js/tristate.js
  2. +6 −2 js/tristate.min.js
  3. +1 −1 tristate-test-inline.html
View
@@ -1,8 +1,11 @@
/*
--- Tristate Checkbox ---
-v 0.9.2 19th Dec 2008
+v 0.9.3 14th Apr 2012
By Shams Mahmood
http://shamsmi.blogspot.com
+
+Fixes by Michal Letynski mletynski@gmail.com
+
*/
var STATE_NONE = 0;
@@ -21,7 +24,7 @@ var DEFAULT_CONFIG = {
UNCHECKED_HILI : 'images/unchecked_highlighted.gif',
INTERMEDIATE_NORM : 'images/intermediate.gif',
INTERMEDIATE_HILI : 'images/intermediate_highlighted.gif',
- CHECKED_NORM : 'images/hecked.gif',
+ CHECKED_NORM : 'images/checked.gif',
CHECKED_HILI : 'images/checked_highlighted.gif'
};
@@ -164,7 +167,6 @@ function createHiddenStateField(triStateBoxNode, triStateBoxFieldId) {
function createTriStateImageNode(triStateBoxNode, imageNodeId, standAloneMode) {
var imageNode = new Image();
imageNode.id = imageNodeId;
- //imageNode.src = DEFAULT_CONFIG[UNCHECKED_NORM];
triStateBoxNode.appendChild(imageNode);
if (triStateBoxNode.addEventListener) {
triStateBoxNode.addEventListener('mouseover', onMouseOverImage(imageNode.id), false);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit ab8a728

Please sign in to comment.