Skip to content

Instantly share code, notes, and snippets.

@azhurb
Created February 11, 2016 10:57
Show Gist options
  • Select an option

  • Save azhurb/3d91d363e58cb874c9d5 to your computer and use it in GitHub Desktop.

Select an option

Save azhurb/3d91d363e58cb874c9d5 to your computer and use it in GitHub Desktop.
Simple TV icon
Index: c/tv.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- c/tv.js (revision 161e355d70b9f533ceb65c0eb7ddcc8f1af8e62b)
+++ c/tv.js (revision )
@@ -1911,39 +1911,10 @@
module.tv.genres = genres;
module.tv.genre = genres[0];
- var map = [];
-
- for(var i=0; i<genres.length; i++){
- map.push(
-
- {
- "title" : genres[i].title,
- "cmd" : (function(genre){
-
-
- return function(){
- _debug('genre.id', genre.id);
-
- if (genre.alias == 'for adults'){
-
- module.tv.parent_password_promt.callback = function(){
+ main_menu.add(word['tv_title'], [], 'mm_ico_tv.png', function(){
- main_menu.hide();
+ main_menu.hide();
- module.tv._show(genre);
- };
- module.tv.parent_password_promt.show();
- }else{
- main_menu.hide();
- module.tv._show(genre);
- }
- }
-
- })(genres[i])
- }
- );
- }
-
-
- main_menu.add(word['tv_title'], map, 'mm_ico_tv.png', '', module.tv);
+ module.tv._show();
+ }, module.tv);
loader.next();
}
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment