Plugin Directory

Changeset 356213


Ignore:
Timestamp:
03/06/2011 07:15:16 PM (15 years ago)
Author:
tkriplean
Message:

removing \" properly on rendering

Location:
reflect/trunk/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • reflect/trunk/js/reflect.js

    r356205 r356213  
    918918            }
    919919
    920            
    921             /*try {
    922                 ctext
    923                     .animateHighlight( Reflect.utils.get_inverted_background_color( ctext, cc ), 4000, 'color' );
    924             } catch ( err ) {
    925                 console.log(err);
    926             }*/
    927 
    928920        },
    929921        from_highlight : function ( bullet_obj, canceled ) {
     
    1002994            if ( str ) {
    1003995                return $j('<div/>')
    1004                     .text(str)
     996                    .text(str.replace(/\\"/g, '"'))
    1005997                    .html();
    1006998            } else {
     
    10501042                return '#555';
    10511043            }
    1052         }
     1044        },
     1045       
     1046       
     1047       
    10531048    },
    10541049
     
    16151610                   
    16161611                    // segment sentences we can index them during highlighting
    1617                    
    16181612                    comment.elements.comment_text.wrap_sentences();
    16191613                    comment.elements.comment_text.find( '.sentence' )
     
    16941688} );
    16951689
    1696 $j.fn.animateHighlight = function(highlightColor, duration, property) {
    1697     var highlightBg = highlightColor || "#FFFF9C";
    1698     var animateMs = duration || 1500;
    1699      var css_property = property || "backgroundColor";
    1700     var originalBg = this.css(property);
    1701     this.stop().css("background-color", highlightBg).animate({property: originalBg}, animateMs);
    1702 };
    1703 
  • reflect/trunk/js/third_party/jquery.highlight.js

    r356205 r356213  
    11/*
    2  * jQuery Highlight plugin
    32 *
    4  * Modified version of Bartek Szopka's jQuery Highlight (http://bartaz.github.com/sandbox.js/jquery.highlight.html)
    5  * Copyright (c) 2009 Bartek Szopka
     3 * Heavily modified version of Bartek Szopka's jQuery Highlight (http://bartaz.github.com/sandbox.js/jquery.highlight.html)
     4 * Copyright (c) 2009 Bartek Szopka. Adapted by Travis Kriplean for Reflect.
    65 *
    76 * Licensed under MIT license.
     
    2322                var wordNode = node.splitText(match.index);
    2423                wordNode.splitText(match[0].length);
    25                 
    26             }else if(jQuery.trim(node.nodeValue).length == 0){
    27                 return 0;
    28             }else{
     24               
     25                } else if(jQuery.trim(node.nodeValue).length == 0){
     26                    return 0;
     27                }else{
    2928                var wordNode = node.splitText(0);
    30                 //wordNode.splitText(wordNode.length);
    3129            }
    3230           
Note: See TracChangeset for help on using the changeset viewer.