").kendoWindow({ title: "Confirm", width: "240px", resizable: false, modal: true, animation: { open: { effects: "fade:in" }, close: { effects: "fade:out" } }, open: function() { $('body').addClass('blur'); }, close: function() { $('body').removeClass('blur'); } }); public_media_type_map = { 'movie': 'Movie', 'tv': 'TV Show', 'person': 'Person' }; $(document).on('keydown', null, 'e', function() { if ( $('a.keyboard_s.edit_page').length ) { $('a.keyboard_s.edit_page')[0].click(); } }); $(document).on('keydown', null, 'a', function() { if ( $('a.keyboard_s.add_image').length ) { $('a.keyboard_s.add_image')[0].click(); } }); $(document).on('keydown', null, 'l', function() { if ( $('a.keyboard_s.lock_all').length ) { $('a.keyboard_s.lock_all')[0].click(); } }); $(document).on('keydown', null, 'ctrl+s', function() { if ( $('input.keyboard_s.save').length ) { $('input.keyboard_s.save').click(); } }); $(document).on('keydown', null, 'p', function() { $('header ul.primary li.user a').addClass('keyboard'); $('header ul.primary li.user a').click(); }); $(document).on('keydown', null, 't', function() { if ( $('#edit_translation_selector').length ) { $("#edit_translation_selector").data("kendoDropDownList").open(); } }); $(document).on('keydown', null, 'b', function() { if ( $('a.keyboard_s.parent').length ) { $('a.keyboard_s.parent')[0].click(); } }); $(document).on('keyup', null, 's', function() { if ( $('#search_v4').length ) { showSearch(true); } }); $(document).on('keyup', null, 'shift+/', function() { keyboard_shortcut_popup.open(); }); $(document).on('keydown', null, 'left', function() { if ( $('span.previous a.keyboard_s').length ) { $('span.previous a.keyboard_s')[0].click(); } }); $(document).on('keydown', null, 'right', function() { if ( $('span.next a.keyboard_s').length ) { $('span.next a.keyboard_s')[0].click(); } }); $(document).on('keydown', null, 'm', function() { if ( $('#new_shortcut_bar').length ) { $("#new_shortcut_bar").focus(); } }); $(document).on('keydown', null, 'esc', function() { if ( $('div.custom_bg.keyboard_s').length && $('#ott_offers_window a.close').length ) { $('#ott_offers_window a.close')[0].click(); } }); }); var gender_lookup = { 0: 'two', 1: 'one', 2: 'two', 3: 'two' }