ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r18491: LJSUP-7944: Rich text editor don't work ...

Committer: ssafronova
LJSUP-7944: Rich text editor don't work at iphone.
[tags: pkornilov]
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-03-10 04:35:23 UTC (rev 18490)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-03-10 04:38:37 UTC (rev 18491)
@@ -1419,7 +1419,7 @@
         $out .= $self->wrap_js(qq{
             FCKeditor_IsCompatibleBrowser = (function(FCKeditor_IsCompatibleBrowser) {
                 return function() {
-                    if (~navigator.userAgent.indexOf('iPhone')) {
+                    if (/iPad|iPhone/.test(navigator.userAgent)) {
                         return false;
                     }
                     return FCKeditor_IsCompatibleBrowser();

Tags: livejournal, pkornilov, pm, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments