Changeset 12731

Show
Ignore:
Timestamp:
10/04/11 05:27:03 (2 years ago)
Author:
mbrevda
Message:

re #5342 - flyout menues on hover

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/pbxlib.js.php

    r12716 r12731  
    129129break;case'+':txt.text('-  ');$('.'+el).show();break;}}) 
    130130$('#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');} 
    132132$('.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;}}) 
    133133$('#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  
    746746  $('.menubar').show().menubar(); 
    747747   
     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     
    748758  //show reload button if neede 
    749759  if (fpbx.conf.reload_needed) { 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/views/menu.php

    r12730 r12731  
    7777    //      first checking in the module owner's i18n, then in the core i18n 
    7878    // 
    79  
    8079    if (count($cat) == 1) { 
    8180      if (isset($cat[0]['hidden']) && $cat[0]['hidden'] == 'true') { 
     
    8887      continue; 
    8988    } 
    90     $mods[$t] = '<a href="#">' 
     89    $mods[$t] = '<a href="#" class="module_menu_button">' 
    9190        . _(ucwords($t)) 
    9291        . '</a><ul>';