Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Upgraded to prototype 1.7.0.0

  • Loading branch information...
commit c6ea09cd219c7e15f4ddb14c9803bcf85fbe397d 1 parent 80f25cb
authored February 03, 2011
11  opentip.js
@@ -45,8 +45,8 @@
45 45
  */
46 46
 var Opentip = {
47 47
 
48  
-  Version: '1.2.10',
49  
-  REQUIRED_PROTOTYPE_VERSION: '1.6.0',
  48
+  Version: '1.3.0',
  49
+  REQUIRED_PROTOTYPE_VERSION: '1.7.0',
50 50
   REQUIRED_SCRIPTACULOUS_VERSION: '1.8.0',
51 51
   STICKS_OUT_TOP: 1,
52 52
   STICKS_OUT_BOTTOM: 2,
@@ -229,12 +229,11 @@ Event.observe(window, Opentip.IEVersion() ? 'load' : 'dom:loaded', function() {
229 229
       var optionValue;
230 230
       if (optionValue = element.readAttribute('ot-' + optionName)) {
231 231
         try {
232  
-          optionValue = optionValue.evalJSON(); // Not using sanitize, to avoid the isJSON check.
  232
+          // See if it's a JSON string.
  233
+          optionValue = optionValue.gsub("'", '"').evalJSON();
233 234
         }
234 235
         catch (err) {
235  
-          // Well it wasn't JSON.
236  
-          // I'm not using isJSON() here, so it's possible to write: [ 'left', 'top' ], which
237  
-          // isn't valid JSON.
  236
+          // Well, it's not. 
238 237
         }
239 238
 
240 239
         options[optionName.camelize()] = optionValue;
6  test/index.html
@@ -34,8 +34,8 @@
34 34
 		
35 35
 	</style>
36 36
 
37  
-	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js"></script>
38  
-	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js"></script>
  37
+	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
  38
+	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js"></script>
39 39
 
40 40
 	<script type="text/javascript" src="../opentip.js"></script>
41 41
 	<script type="text/javascript">
@@ -439,7 +439,7 @@
439 439
 	<div class="test">
440 440
       <div ot="Hi this is a very simple tooltip.">Just defining ot.</div>
441 441
       <div ot="Hi" ot-delay="0.99" ot-style="glass">Delay 0.99, style glass.</div>
442  
-      <a href="ajaxtest.html" ot="true" ot-show-on="click" ot-ajax="true" ot-stem="true" ot-tip-joint="[ 'right', 'middle' ]">Testing AJAX</a>
  442
+      <a href="ajaxtest.html" ot="true" ot-show-on="click" ot-ajax="true" ot-stem="true" ot-tip-joint="[ 'center', 'bottom' ]">Testing AJAX. tip joint: center/bottom</a>
443 443
       <div ot="Hi" ot-show-effect="condense" ot-hide-effect="puff">Testing the inline HTML options.</div>
444 444
 	</div>
445 445
     

0 notes on commit c6ea09c

Please sign in to comment.
Something went wrong with that request. Please try again.