madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r11789: LJSUP-11931: Setting "When I post an ent...

Committer: sbelyaev
LJSUP-11931: Setting "When I post an entry, automatically select to cross-post it to Vkontakte." was disabled for identity users
U   trunk/cgi-bin/LJ/Setting/VkontakteConnect.pm
U   trunk/templates/Settings/VkontakteConnect.tmpl
Modified: trunk/cgi-bin/LJ/Setting/VkontakteConnect.pm
===================================================================
--- trunk/cgi-bin/LJ/Setting/VkontakteConnect.pm	2012-04-25 09:32:33 UTC (rev 11788)
+++ trunk/cgi-bin/LJ/Setting/VkontakteConnect.pm	2012-04-25 10:30:07 UTC (rev 11789)
@@ -87,7 +87,7 @@
     # default settings
     return 1 unless $u->prop('vkontakte_access_token');
 
-    if ( $u->is_personal ) {
+    if ( $u->is_personal || $u->is_identity) {
         if ( $class->get_arg( $args, 'repost_entries' ) ) {
             $u->third_party_notify_list_add('vkontakte');
         }

Modified: trunk/templates/Settings/VkontakteConnect.tmpl
===================================================================
--- trunk/templates/Settings/VkontakteConnect.tmpl	2012-04-25 09:32:33 UTC (rev 11788)
+++ trunk/templates/Settings/VkontakteConnect.tmpl	2012-04-25 10:30:07 UTC (rev 11789)
@@ -7,21 +7,14 @@
         </TMPL_UNLESS>
     </p>
     <ul class="b-manage-connectopt">
-    <TMPL_IF is_identity>
-        <li class="disabled">
-            <input type="checkbox" name="<TMPL_VAR form_field_prefix>repost_entries" value="1" id="<TMPL_VAR form_field_prefix>repost_entries" disabled="disabled" />
-            <label for="<TMPL_VAR form_field_prefix>repost_entries"><TMPL_VAR expr="ml('setting.vkontakteconnect.option.entries_vkontakte')"></label>
-        </li>
-    <TMPL_ELSE>
         <li>
             <input type="checkbox" name="<TMPL_VAR form_field_prefix>repost_entries" value="1" id="<TMPL_VAR form_field_prefix>repost_entries"<TMPL_IF repost_entries> checked="checked"</TMPL_IF> />
             <label for="<TMPL_VAR form_field_prefix>repost_entries"><TMPL_VAR expr="ml('setting.vkontakteconnect.option.entries_vkontakte')"></label>
         </li>
-    </TMPL_IF>
-    <li>
-        <input type="checkbox" name="<TMPL_VAR form_field_prefix>repost_comments" value="1" id="<TMPL_VAR form_field_prefix>repost_comments"<TMPL_IF repost_comments> checked="checked"</TMPL_IF> />
-        <label for="<TMPL_VAR form_field_prefix>repost_comments"><TMPL_VAR expr="ml('setting.vkontakteconnect.option.comments_vkontakte')"></label>
-    </li>
+        <li>
+            <input type="checkbox" name="<TMPL_VAR form_field_prefix>repost_comments" value="1" id="<TMPL_VAR form_field_prefix>repost_comments"<TMPL_IF repost_comments> checked="checked"</TMPL_IF> />
+            <label for="<TMPL_VAR form_field_prefix>repost_comments"><TMPL_VAR expr="ml('setting.vkontakteconnect.option.comments_vkontakte')"></label>
+        </li>
     </ul>
     <p class="details"><TMPL_VAR expr="ml('setting.vkontakteconnect.note.connected')"></p>
 <TMPL_ELSE>

Tags: ljcom, madeon, pm, sbelyaev, tmpl
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