]> granicus.if.org Git - transmission/commitdiff
(trunk web) #4459 "Remove 'Compact View' from the action menu" -- done.
authorJordan Lee <jordan@transmissionbt.com>
Tue, 30 Aug 2011 01:54:34 +0000 (01:54 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 30 Aug 2011 01:54:34 +0000 (01:54 +0000)
web/index.html
web/javascript/transmission.js

index f30cf84fc7474a11cce5de4fc5622e7a692178bd..c1a681c4812a97047ebcac82f57490a6f348e11f 100755 (executable)
                                                                <li id="reverse_sort_order">Reverse Sort Order</li>
                                                        </ul>
                                                </li>
-                                               <li class="separator"></li>
-                                               <li id="compact_view">Compact View</li>
                                        </ul>
                                </li>
                        </ul>
index 8c23be3f94c42d45c5c4f73ee8adb010585a585c..3b686e3d935dda5bc2cb18b4f309fe40f3f88f4f 100644 (file)
@@ -933,9 +933,6 @@ Transmission.prototype =
                                        $('div#stats_container h2.dialog_heading').show();
                                        tr.showStatsDialog();
                                }
-                               else if ($element[0].id == 'compact_view') {
-                                       this.toggleCompactClicked();
-                               }
                                else if ($element[0].id == 'homepage') {
                                        window.open('http://www.transmissionbt.com/');
                                }
@@ -2247,16 +2244,6 @@ Transmission.prototype =
        {
                var compact = this[Prefs._CompactDisplayState];
 
-               // update the ui: context menu
-               // (disabled in iphone mode...)
-               if (!isMobileDevice) {
-                       var e = $('#settings_menu #compact_view');
-                       if (compact)
-                               e.selectMenuItem();
-                       else
-                               e.deselectMenuItem();
-               }
-
                // update the ui: footer button
                $("#compact-button").toggleClass('enabled',compact);