[c_selection.js] If safari_mobile, get current selection from a previously created global variable
[c_sync.js] ref where the safari_mobile global is used
[c_text_view_comments.js] if safari_mobile update selection also on selectionChange event
[text_view_comments.html] if safari_mobile store a clone of the current selection on each selectionChange
set layout width to 99% to improve display
factorize safari mobile detection code
from django.test import TestCase
from django.test.client import Client
from django.core import management
from cm.models import *
class HistoryTest(TestCase):
fixtures = ['test_comments',]
def test_revert(self):
text = Text.objects.all()[0]
text_version = text.last_text_version
text.revert_to_version(text_version.key)