class TextAnnotation

Public Instance Methods

add_annotation_js_string() click to toggle source
# File app/models/text_annotation.rb, line 6
def add_annotation_js_string
  "add_annotation(#{self.id},$R(#{self.line_start}, #{self.line_end}),
    #{self.annotation_text_id})"
end
remove_annotation_js_string() click to toggle source
# File app/models/text_annotation.rb, line 11
def remove_annotation_js_string
  "remove_annotation(#{self.id}, $R(#{self.line_start},
    #{self.line_end}), #{self.annotation_text.id});"
end