Skip to content

Instantly share code, notes, and snippets.

@azhurb
Created October 11, 2012 10:59
Show Gist options
  • Save azhurb/3871637 to your computer and use it in GitHub Desktop.
Save azhurb/3871637 to your computer and use it in GitHub Desktop.
Default wide tv container
Index: c/tv.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/tv.js (revision 3273)
+++ c/tv.js (revision )
@@ -585,13 +585,6 @@
//this._play_now(this.data_items[this.cur_row]);
this.set_active_row(this.cur_row);
}
-
- // set active list w/ info item
- if (this.view_menu && this.view_menu.set_passive_row){
- this.view_menu.set_passive_row();
- this.view_menu.cur_row_idx = 0;
- this.view_menu.set_active_row();
- }
};
this.init_short_info = function(){
@@ -1435,8 +1428,8 @@
tv.init_view_menu(
[
- {"label" : word['tv_list_w_info'], "cmd" : function(){this.parent.set_short_container()}},
- {"label" : word['tv_list'], "cmd" : function(){this.parent.set_wide_container()}}
+ {"label" : word['tv_list'], "cmd" : function(){this.parent.set_wide_container()}},
+ {"label" : word['tv_list_w_info'], "cmd" : function(){this.parent.set_short_container()}}
],
{
"offset_x" : 27,
@@ -1496,8 +1489,8 @@
tv.filter_menu.dependency = [tv.view_menu, tv.sort_menu, tv.fav_menu];
}
- tv.set_short_container();
+ tv.set_wide_container();
-
+
tv.init_header_path(word['tv_title']);
tv.hide();
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment