Changeset 12731
- Timestamp:
- 10/04/11 05:27:03 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/pbxlib.js.php
r12716 r12731 129 129 break;case'+':txt.text('- ');$('.'+el).show();break;}}) 130 130 $('#fpbx_lang > li').click(function(){$.cookie('lang',$(this).data('lang'));window.location.reload();}) 131 $('.rnav > ul').menu();$('.radioset').buttonset();$('.menubar').show().menubar(); if(fpbx.conf.reload_needed){toggle_reload_button('show');}131 $('.rnav > ul').menu();$('.radioset').buttonset();$('.menubar').show().menubar();$('.module_menu_button').hover(function(){$(this).click()},function(){});if(fpbx.conf.reload_needed){toggle_reload_button('show');} 132 132 $('.sortable').menu();$('.ui-menu-item').click(function(){go=$(this).find('a').attr('href');if(go&&!$(this).find('a').hasClass('ui-state-disabled')){document.location.href=go;}}) 133 133 $('#button_reload').click(function(){if(fpbx.conf.RELOADCONFIRM=='true'){fpbx_reload_confirm();}else{fpbx_reload();}});$('#BRAND_IMAGE_FREEPBX_LEFT').click(function(){window.open($(this).data('brand_image_freepbx_link_left'),'_newtab');});$('input[type=submit],input[type=button], button, input[type=reset]').each(function(){var prim=(typeof $(this).data('button-icon-primary')=='undefined')?'':($(this).data('button-icon-primary'));var sec=(typeof $(this).data('button-icon-secondary')=='undefined')?'':($(this).data('button-icon-secondary'));var txt=(typeof $(this).data('button-text')=='undefined')?'true':($(this).data('button-text'));var txt=(txt=='true')?true:false;$(this).button({icons:{primary:prim,secondary:sec},text:txt});});$(document).bind('keydown','meta+shift+a',function(){$('#modules_button').trigger('click');});$(document).bind('keydown','meta+shift+s',function(){});$(document).bind('keydown','meta+shift+x',function(){});$('#user_logout').click(function(){url=window.location.origin+window.location.pathname;$.get(url+'?logout=true',function(){$.cookie('PHPSESSID',null);window.location=url;});});}); freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/script.legacy.js
r12716 r12731 746 746 $('.menubar').show().menubar(); 747 747 748 //show menu on hover 749 //this is far from perfect, and will hopefully be depreciated soon 750 $('.module_menu_button').hover( 751 function(){ 752 $(this).click() 753 }, 754 function(){ 755 756 }); 757 748 758 //show reload button if neede 749 759 if (fpbx.conf.reload_needed) { freepbx/branches/2.10/amp_conf/htdocs/admin/views/menu.php
r12730 r12731 77 77 // first checking in the module owner's i18n, then in the core i18n 78 78 // 79 80 79 if (count($cat) == 1) { 81 80 if (isset($cat[0]['hidden']) && $cat[0]['hidden'] == 'true') { … … 88 87 continue; 89 88 } 90 $mods[$t] = '<a href="#" >'89 $mods[$t] = '<a href="#" class="module_menu_button">' 91 90 . _(ucwords($t)) 92 91 . '</a><ul>';
