Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 3 commits
  • 11 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 01, 2012
Nerijus Barauskas removing unnecessery function 54f9171
Nerijus Barauskas css fixes 08044ba
Nerijus Barauskas tooltip modifications 84ed15d
14 application/views/admin/domains.phtml
View
@@ -8,10 +8,15 @@
<div style="float: right; margin-top: -10px;">
<div class="btn-toolbar">
<span class="btn-group">
- <a class="btn" id="modal-dialog-add_domain" href="{genUrl controller='admin' action='add-domain' aid=$targetAdmin.id modal=true}" onmouseover="vm_tooltip( 'modal-dialog-add_domain', 'Add Domain', 'bottom' );">
+ <a class="btn" id="modal-dialog-add_domain" href="{genUrl controller='admin' action='add-domain' aid=$targetAdmin.id modal=true}" title="Add Domain" >
<i class="icon-plus"></i>
</a>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-add_domain' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
</div>
</div>
{/if}
@@ -34,9 +39,14 @@
<tr id="domain_{$domainAdmin.Domain.id}">
<td>{$domainAdmin.Domain.domain}</td>
<td>
- <span class="btn btn-mini" id="domain-remove-{$domainAdmin.Domain.id}" onclick="domainRemove( {$domainAdmin.Domain.id}, '{$domainAdmin.Domain.domain}');" onmouseover="vm_tooltip( 'domain-remove-{$domainAdmin.Domain.id}', 'Remove' );">
+ <span class="btn btn-mini" id="domain-remove-{$domainAdmin.Domain.id}" onclick="domainRemove( {$domainAdmin.Domain.id}, '{$domainAdmin.Domain.domain}');" title="Remove">
<i class="icon-trash"></i>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#domain-remove-{$domainAdmin.Domain.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ });
+ </script>
</td>
</tr>
{/foreach}
27 application/views/admin/list.phtml
View
@@ -11,10 +11,15 @@
<div style="float: right; margin-top: -10px;">
<div class="btn-toolbar">
<span class="btn-group">
- <a class="btn" id="modal-dialog-add_admin" onmouseover="vm_tooltip( 'modal-dialog-add_admin', 'Add Admin', 'bottom' );" href="{genUrl controller='admin' action='add' modal=true}">
+ <a class="btn" id="modal-dialog-add_admin" title="Add Admin" href="{genUrl controller='admin' action='add' modal=true}">
<i class="icon-plus"></i>
</a>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-add_admin' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
</div>
</div>
@@ -54,24 +59,36 @@
</td>
<td>
<div class="btn-group">
- <a class="btn btn-mini" id="modal-dialog-password-{$oneAdmin.id}" onmouseover="vm_tooltip( 'modal-dialog-password-{$oneAdmin.id}', 'Password' );" href="{genUrl controller='admin' action='password' modal=true aid=$oneAdmin.id}">
+ <a class="btn btn-mini" id="modal-dialog-password-{$oneAdmin.id}" title="Password" href="{genUrl controller='admin' action='password' modal=true aid=$oneAdmin.id}">
<i class="icon-lock"></i>
</a>
- <a class="btn btn-mini" id="admin_logs_{$oneAdmin.id}" onmouseover="vm_tooltip( 'admin_logs_{$oneAdmin.id}', 'Logs' );" href="{genUrl controller='log' action='list'}/aid/{$oneAdmin.id}">
+ <a class="btn btn-mini" id="admin_logs_{$oneAdmin.id}" title="Logs" href="{genUrl controller='log' action='list'}/aid/{$oneAdmin.id}">
<i class="icon-align-justify"></i>
</a>
{if $identity.admin.id neq $oneAdmin.id}
- <span class="btn btn-mini" id="purge-admin-{$oneAdmin.id}" onmouseover="vm_tooltip( 'purge-admin-{$oneAdmin.id}', 'Purge' );" onclick="purgeAdmin( {$oneAdmin.id}, '{$oneAdmin.username}' );">
+ <span class="btn btn-mini" id="purge-admin-{$oneAdmin.id}" title="Purge" onclick="purgeAdmin( {$oneAdmin.id}, '{$oneAdmin.username}' );">
<icon class="icon-trash"></i>
</span>
{/if}
{if not $oneAdmin.super}
- <a class="btn btn-mini" id="admin_domains_{$oneAdmin.id}" onmouseover="vm_tooltip( 'admin_domains_{$oneAdmin.id}', 'List Domains' );" href="{genUrl controller='admin' action='domains'}/aid/{$oneAdmin.id}">
+ <a class="btn btn-mini" id="admin_domains_{$oneAdmin.id}" title="List Domains" href="{genUrl controller='admin' action='domains'}/aid/{$oneAdmin.id}">
<i class="icon-screenshot"></i>
</a>
{/if}
</div>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-password-{$oneAdmin.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#admin_logs_{$oneAdmin.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ {if $identity.admin.id neq $oneAdmin.id}
+ $( '#purge-admin-{$oneAdmin.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ {/if}
+ {if not $oneAdmin.super}
+ $( '#admin_domains_{$oneAdmin.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ {/if}
+ });
+ </script>
</td>
</tr>
{/foreach}
4 application/views/alias/form/edit.phtml
View
@@ -13,16 +13,16 @@
Addres
</label>
<div id="div-controls-{$element->local_part->getId()}" class="controls">
- <div class="input-append btn-group">
+ <div class="input-append" style="float: left">
{$element->local_part}
{if !isset( $domain ) || !$domain }
<span class="btn add-midd">@</span>
- {$element->domain}
{else}
<span class="add-on">@{$domain->domain}</span>
<div style="display: none;">{$element->domain}</div>
{/if}
</div>
+ {$element->domain}
{if $element->local_part->getMessages()}
<script type="text/javascript">
29 application/views/alias/list.phtml
View
@@ -9,25 +9,36 @@
<div style="float: right; margin-top: -10px;">
<div class="btn-toolbar">
<span class="btn-group">
- <span class="btn" id="ima" onmouseover="vm_tooltip( 'ima', '{if $includeMailboxAliases}Hide{else}Show{/if} Mailbox Aliases', 'bottom' );" >
+ <span class="btn" id="ima" title="{if $includeMailboxAliases}Hide{else}Show{/if} Mailbox Aliases" >
{if $includeMailboxAliases}
<i class="icon-eye-close"></i>
{else}
<i class="icon-eye-open"></i>
{/if}
</span>
- <a class="btn" id="modal-dialog-add_alias" onmouseover="vm_tooltip( 'modal-dialog-add_alias', 'Add Alias', 'bottom' );" href="{genUrl controller='alias' action='edit' modal=true}">
+ <a class="btn" id="modal-dialog-add_alias" title="Add Alias" href="{genUrl controller='alias' action='edit' modal=true}">
<i class="icon-plus"></i>
</a>
</span>
</div>
+ <script>
+ $( document ).ready( function(){
+ $( '#ima' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ $( '#modal-dialog-add_alias' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
</div>
<h1>
Aliases {if $domain}<small> for {$domain.domain} {if $domain.aliases neq 0}({$domain->countAliases()}/{$domain.aliases}){/if}</small>{/if}
{if isset( $session->domain ) && $session->domain}
- <a class="btn" id="show_all_aliases" onmouseover="vm_tooltip( 'show_all_aliases', 'Show All', 'bottom' );" href="{genUrl controller='alias' action='list' unset=1}"><i class="icon-remove-circle"></i></a>
+ <a class="btn" id="show_all_aliases" title="Show All" href="{genUrl controller='alias' action='list' unset=1}"><i class="icon-remove-circle"></i></a>
+ <script>
+ $( document ).ready( function(){
+ $( '#show_all_aliases' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
{/if}
</h1>
</div>
@@ -60,20 +71,26 @@
{if strlen( $oneAlias.goto ) > 50 }
<script type="text/javascript">
$( document ).ready( function() {
- $( "#alias-goto-{$oneAlias.id}" ).tooltip( { title: '{$oneAlias.goto|regex_replace:"/[,]/":", "}', delay: { show: 500, hide: 0 } } );
+ $( "#alias-goto-{$oneAlias.id}" ).tooltip( { title: '{$oneAlias.goto|regex_replace:"/[,]/":", "}' } );
});
</script>
{/if}
</td>
<td>
<div class="btn-group">
- <a class="btn btn-mini" id="modal-dialog-edit_alias_{$oneAlias.id}" onmouseover="vm_tooltip( 'modal-dialog-edit_alias_{$oneAlias.id}', 'Edit' );" href="{genUrl controller='alias' action='edit' alid=$oneAlias.id modal=true}">
+ <a class="btn btn-mini" id="modal-dialog-edit_alias_{$oneAlias.id}" title="Edit" href="{genUrl controller='alias' action='edit' alid=$oneAlias.id modal=true}">
<i class="icon-pencil"></i>
</a>
- <span class="btn btn-mini" id="delete-alias-{$oneAlias.id}" onmouseover="vm_tooltip( 'delete-alias-{$oneAlias.id}', 'Delete' );" onclick="deleteAlias( {$oneAlias.id} );">
+ <span class="btn btn-mini" id="delete-alias-{$oneAlias.id}" title="Delete" onclick="deleteAlias( {$oneAlias.id} );">
<i class="icon-trash"></i>
</span>
</div>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-edit_alias_{$oneAlias.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#delete-alias-{$oneAlias.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ });
+ </script>
</td>
</tr>
{/foreach}
14 application/views/domain/admins.phtml
View
@@ -6,10 +6,15 @@
<div style="float: right; margin-top: -10px;">
<div class="btn-toolbar">
<span class="btn-group">
- <span class="btn" id="open_add_admin" onmouseover="vm_tooltip( 'open_add_admin', 'Add Admin', 'bottom' );">
+ <span class="btn" id="open_add_admin" title="Add Admin">
<i class="icon-plus"></i>
</apan>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#open_add_admin' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
</div>
</div>
@@ -30,9 +35,14 @@
<tr id="admin_{$oneAdmin.Admin.id}">
<td>{$oneAdmin.Admin.username}{if not $oneAdmin.Admin.active} <em>(inactive)</em>{/if}</td>
<td>
- <span class="btn btn-mini" onclick="removeAdmin( {$oneAdmin.Admin.id}, '{$oneAdmin.Admin.username}' );" id="remove-admin-{$oneAdmin.Admin.id}" onmouseover="vm_tooltip( 'remove-admin-{$oneAdmin.Admin.id}', 'Remove' );">
+ <span class="btn btn-mini" onclick="removeAdmin( {$oneAdmin.Admin.id}, '{$oneAdmin.Admin.username}' );" id="remove-admin-{$oneAdmin.Admin.id}" title="Remove">
<i class="icon-trash"></i>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#remove-admin-{$oneAdmin.Admin.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ });
+ </script>
</td>
</tr>
{/foreach}
29 application/views/domain/list.phtml
View
@@ -10,10 +10,15 @@
<div style="float: right; margin-top: -10px;">
<div class="btn-toolbar">
<span class="btn-group">
- <a class="btn" id="modal-dialog-wide_add_domain" onmouseover="vm_tooltip( 'modal-dialog-wide_add_domain', 'Add Domain', 'bottom' );" href="{genUrl controller='domain' action='edit' modal=1}" >
+ <a class="btn" id="modal-dialog-wide_add_domain" title="Add Domain" href="{genUrl controller='domain' action='edit' modal=1}" >
<i class="icon-plus"></i>
</a>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-wide_add_domain' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
</div>
</div>
{/if}
@@ -41,11 +46,11 @@
<tr id="domain_{$oneDomain.id}">
<td>{$oneDomain.domain}</td>
<td>
- <a class="btn btn-mini" id="modal-dialog-add_mailbox_{$oneDomain.id}" onmouseover="vm_tooltip( 'modal-dialog-add_mailbox_{$oneDomain.id}', 'Add Mailbox' );" href="{genUrl controller='mailbox' action='edit' did=$oneDomain.id modal=1}"><i class="icon-plus"></i></a>&nbsp;&nbsp;
+ <a class="btn btn-mini" id="modal-dialog-add_mailbox_{$oneDomain.id}" title="Add Mailbox" href="{genUrl controller='mailbox' action='edit' did=$oneDomain.id modal=1}"><i class="icon-plus"></i></a>&nbsp;&nbsp;
<a class="ul" href="{genUrl controller='mailbox' action='list' did=$oneDomain.id}">{$oneDomain->countMailboxes()}{if $oneDomain.mailboxes}/{$oneDomain.mailboxes}{/if}</a>
</td>
<td>
- <a class="btn btn-mini" id="modal-dialog-add_alias_{$oneDomain.id}" onmouseover="vm_tooltip( 'modal-dialog-add_alias_{$oneDomain.id}', 'Add Alias' );" href="{genUrl controller='alias' action='edit' did=$oneDomain.id modal=1}"><i class="icon-plus"></i></a>&nbsp;&nbsp;
+ <a class="btn btn-mini" id="modal-dialog-add_alias_{$oneDomain.id}" title="Add Alias" href="{genUrl controller='alias' action='edit' did=$oneDomain.id modal=1}"><i class="icon-plus"></i></a>&nbsp;&nbsp;
<a class="ul" href="{genUrl controller='alias' action='list' did=$oneDomain.id}">{$oneDomain->countAliases( true )}{if $oneDomain.aliases}/{$oneDomain.aliases}{/if}</a>
</td>
<td>
@@ -57,23 +62,33 @@
<td>{$oneDomain.created}</td>
<td>
<div class="btn-group">
- <a class="btn btn-mini" id="modal-dialog-wide_edit_domain_{$oneDomain.id}" onmouseover="vm_tooltip( 'modal-dialog-wide_edit_domain_{$oneDomain.id}', 'Edit' );" href="{genUrl controller='domain' action='edit' did=$oneDomain.id modal=true}">
+ <a class="btn btn-mini" id="modal-dialog-wide_edit_domain_{$oneDomain.id}" title="Edit" href="{genUrl controller='domain' action='edit' did=$oneDomain.id modal=true}">
<i class="icon-pencil"></i>
</a>
{if $identity.admin.super}
- <a class="btn btn-mini" id="domain_admins_{$oneDomain.id}" onmouseover="vm_tooltip( 'domain_admins_{$oneDomain.id}', 'List Admins' );" href="{genUrl controller='domain' action='admins' did=$oneDomain.id}">
+ <a class="btn btn-mini" id="domain_admins_{$oneDomain.id}" title="List Admins" href="{genUrl controller='domain' action='admins' did=$oneDomain.id}">
<i class="icon-user"></i>
</a>
{/if}
- <a class="btn btn-mini" id="domain_logs_{$oneDomain.id}" onmouseover="vm_tooltip( 'domain_logs_{$oneDomain.id}', 'Logs' );" href="{genUrl controller='log' action='list' did=$oneDomain.id}">
+ <a class="btn btn-mini" id="domain_logs_{$oneDomain.id}" title="Logs" href="{genUrl controller='log' action='list' did=$oneDomain.id}">
<i class="icon-align-justify"></i>
</a>
{if $identity.admin.super}
- <span class="btn btn-mini" id="purge-domain-{$oneDomain.id}" onmouseover="vm_tooltip( 'purge-domain-{$oneDomain.id}', 'Purge' );" onclick="purgeDomain({$oneDomain.id}, '{$oneDomain.domain}');">
+ <span class="btn btn-mini" id="purge-domain-{$oneDomain.id}" title="Purge" onclick="purgeDomain({$oneDomain.id}, '{$oneDomain.domain}');">
<i class="icon-trash"></i>
</span>
{/if}
</div>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-wide_edit_domain_{$oneDomain.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#domain_admins_{$oneDomain.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#domain_logs_{$oneDomain.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#purge-domain-{$oneDomain.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#modal-dialog-add_mailbox_{$oneDomain.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#modal-dialog-add_alias_{$oneDomain.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ });
+ </script>
</td>
</tr>
{/foreach}
11 application/views/log/list.phtml
View
@@ -6,7 +6,14 @@
<h1>
Logs{if isset( $session->domain ) && $session->domain }<small> for {$session->domain.domain}</small>{/if}
{if isset( $session->domain ) && $session->domain}
- <a class="btn" id="show_all_logs" onmouseover="vm_tooltip( 'show_all_logs', 'Show All', 'bottom' );" href="{genUrl controller='log' action='list' unset=1}"><i class="icon-remove-circle"></i></a>
+ <a class="btn" id="show_all_logs" title="Show All" href="{genUrl controller='log' action='list' unset=1}">
+ <i class="icon-remove-circle"></i>
+ </a>
+ <script>
+ $( document ).ready( function(){
+ $( '#show_all_logs' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
{/if}
</h1>
</div>
@@ -33,7 +40,7 @@
{if strlen( $oneLog.data ) > 40 }
<script type="text/javascript">
$( document ).ready( function() {
- $( "#log-message-{$oneLog.id}" ).tooltip( { title: '{$oneLog.data|regex_replace:"/[\r\t\n]/":" "}', delay: { show: 500, hide: 0 } } );
+ $( "#log-message-{$oneLog.id}" ).tooltip( { title: '{$oneLog.data|regex_replace:"/[\r\t\n]/":" "}' } );
});
</script>
{/if}
19 application/views/mailbox/aliases.phtml
View
@@ -7,17 +7,23 @@
<div style="float: right; margin-top: -10px;">
<div class="btn-toolbar">
<span class="btn-group">
- <span class="btn" id="ima" onmouseover="vm_tooltip( 'ima', '{if $includeMailboxAliases}Hide{else}Show{/if} Mailbox Aliases', 'bottom' );" >
+ <span class="btn" id="ima" title="{if $includeMailboxAliases}Hide{else}Show{/if} Mailbox Aliases" >
{if $includeMailboxAliases}
<i class="icon-eye-close"></i>
{else}
<i class="icon-eye-open"></i>
{/if}
</span>
- <a class="btn" id="modal-dialog-add_alias" href="{genUrl controller='alias' action='edit' mid=$mailboxModel.id modal=true}" onmouseover="vm_tooltip( 'modal-dialog-add_alias', 'Add Alias', 'bottom' );">
+ <a class="btn" id="modal-dialog-add_alias" href="{genUrl controller='alias' action='edit' mid=$mailboxModel.id modal=true}" title="Add Alias" >
<i class="icon-plus"></i>
</a>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#ima' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ $( '#modal-dialog-add_alias' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
</div>
</div>
<h1>Aliases of {$mailboxModel.username}</h1>
@@ -43,17 +49,22 @@
{if strlen( $oneAlias.goto ) > 50 }
<script type="text/javascript">
$( document ).ready( function() {
- $( "#alias-goto-{$oneAlias.id}" ).tooltip( { title: '{$oneAlias.goto|regex_replace:"/[,]/":", "}', delay: { show: 500, hide: 0 } } );
+ $( "#alias-goto-{$oneAlias.id}" ).tooltip( { title: '{$oneAlias.goto|regex_replace:"/[,]/":", "}' } );
});
</script>
{/if}
</td>
<td>
<div class="btn-group">
- <span class="btn btn-mini" onclick="deleteAlias( {$oneAlias.id}, {$mailboxModel.id}, '{$oneAlias.address}' );" id="delete-alias-{$oneAlias.id}" onmouseover="vm_tooltip( 'delete-alias-{$oneAlias.id}', 'Remove' );">
+ <span class="btn btn-mini" onclick="deleteAlias( {$oneAlias.id}, {$mailboxModel.id}, '{$oneAlias.address}' );" id="delete-alias-{$oneAlias.id}" title="Remove" >
<i class="icon-trash"></i>
</span>
</div>
+ <script>
+ $( document ).ready( function(){
+ $( '#delete-alias-{$oneAlias.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ });
+ </script>
</td>
</tr>
{/foreach}
5 application/views/mailbox/form/edit.phtml
View
@@ -13,16 +13,17 @@
Address
</label>
<div id="div-controls-{$element->local_part->getId()}" class="controls">
- <div class="input-append btn-group">
+ <div class="input-append" style="float: left;">
{$element->local_part}
{if !isset( $domain ) || !$domain}
<span class="btn add-midd">@</span>
- {$element->domain}
{else}
<span class="add-on">@{$domain->domain}</span>
<div style="display: none;">{$element->domain}</div>
{/if}
</div>
+ {$element->domain}
+
{if $element->local_part->getMessages()}
<script type="text/javascript">
$( '#{$element->local_part->getId()}' ).addClass( 'error' );
35 application/views/mailbox/list.phtml
View
@@ -13,17 +13,29 @@
<div style="float: right; margin-top: -10px;">
<div class="btn-toolbar">
<span class="btn-group">
- <a class="btn" id="modal-dialog-add_mailbox" onmouseover="vm_tooltip( 'modal-dialog-add_mailbox', 'Add Mailbox', 'bottom' );" href="{genUrl controller='mailbox' action='edit' modal=true}{if $domain}/did/{$domain.id}{/if}" title="Add Mailbox">
+ <a class="btn" id="modal-dialog-add_mailbox" title="Add Mailbox" href="{genUrl controller='mailbox' action='edit' modal=true}{if $domain}/did/{$domain.id}{/if}" title="Add Mailbox">
<i class="icon-plus"></i>
</a>
</span>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-add_mailbox' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
</div>
</div>
<h1>
Mailboxes {if $domain}<small> for {$domain.domain} {if $domain.mailboxes neq 0}({$domain->countMailboxes()}/{$domain.mailboxes}){/if}</small>{/if}
{if isset( $session->domain ) && $session->domain}
- <a class="btn" id="show_all_mailbox" onmouseover="vm_tooltip( 'show_all_mailbox', 'Show All', 'bottom' );" href="{genUrl controller='mailbox' action='list' unset=1}"><i class="icon-remove-circle"></i></a>
+ <a class="btn" id="show_all_mailbox" title="Show All" href="{genUrl controller='mailbox' action='list' unset=1}">
+ <i class="icon-remove-circle"></i>
+ </a>
+ <script>
+ $( document ).ready( function(){
+ $( '#show_all_mailbox' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover', placement: 'bottom' } );
+ });
+ </script>
{/if}
</h1>
</div>
@@ -52,22 +64,31 @@
</td>
<td>
<div class="btn-group">
- <a class="btn btn-mini" id="modal-dialog-edit_mailbox_{$oneMailbox.id}" onmouseover="vm_tooltip( 'modal-dialog-edit_mailbox_{$oneMailbox.id}', 'Edit' );" href="{genUrl controller='mailbox' action='edit' mid=$oneMailbox.id modal=true}">
+ <a class="btn btn-mini" id="modal-dialog-edit_mailbox_{$oneMailbox.id}" title="Edit" href="{genUrl controller='mailbox' action='edit' mid=$oneMailbox.id modal=true}">
<i class="icon-pencil"></i>
</a>
- <a class="btn btn-mini" id="modal-dialog-password_{$oneMailbox.id}" onmouseover="vm_tooltip( 'modal-dialog-password_{$oneMailbox.id}', 'Password' );" href="{genUrl controller='mailbox' action='password' mid=$oneMailbox.id modal=true}">
+ <a class="btn btn-mini" id="modal-dialog-password_{$oneMailbox.id}" title="Password" href="{genUrl controller='mailbox' action='password' mid=$oneMailbox.id modal=true}">
<i class="icon-lock"></i>
</a>
- <a class="btn btn-mini" id="mailbox_aliases_{$oneMailbox.id}" onmouseover="vm_tooltip( 'mailbox_aliases_{$oneMailbox.id}', 'List Aliases' );" href="{genUrl controller='mailbox' action='aliases' mid=$oneMailbox.id}">
+ <a class="btn btn-mini" id="mailbox_aliases_{$oneMailbox.id}" title="List Aliases" href="{genUrl controller='mailbox' action='aliases' mid=$oneMailbox.id}">
<i class="icon-random"></i>
</a>
- <span class="btn btn-mini" id="mailbox_settings_{$oneMailbox.id}" onmouseover="vm_tooltip( 'mailbox_settings_{$oneMailbox.id}', 'Send Settings' );" onclick="sendEmail( {$oneMailbox.id}, '{$oneMailbox.username}' );" id="send-email-{$oneMailbox.id}">
+ <span class="btn btn-mini" id="mailbox_settings_{$oneMailbox.id}" title="Send Settings" onclick="sendEmail( {$oneMailbox.id}, '{$oneMailbox.username}' );" id="send-email-{$oneMailbox.id}">
<i class="icon-envelope"></i>
</span>
- <a class="btn btn-mini" id="modal-dialog-wide-purge_{$oneMailbox.id}" onmouseover="vm_tooltip( 'modal-dialog-wide-purge_{$oneMailbox.id}', 'purge' );" href="{genUrl controller='mailbox' action='purge' mid=$oneMailbox.id modal=true}">
+ <a class="btn btn-mini" id="modal-dialog-purge_{$oneMailbox.id}" title="Purge" href="{genUrl controller='mailbox' action='purge' mid=$oneMailbox.id modal=true}">
<i class="icon-trash"></i>
</a>
</div>
+ <script>
+ $( document ).ready( function(){
+ $( '#modal-dialog-edit_mailbox_{$oneMailbox.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#modal-dialog-password_{$oneMailbox.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#mailbox_aliases_{$oneMailbox.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#mailbox_settings_{$oneMailbox.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ $( '#modal-dialog-purge_{$oneMailbox.id}' ).tooltip( { delay: { show: 500, hide: 2 }, trigger: 'hover' } );
+ });
+ </script>
</td>
</tr>
{/foreach}
19 public/js/990-vimbadmin.js
View
@@ -352,25 +352,6 @@ function randPasword( len, id )
}
-/**
- * This function sets and shows tolltip.
- *
- * @param string id The id of element were we want to display tolltip.
- * @param string msg The message to be displayer.
- * @param string msg default top The the position of the tooltip left/right/top/bottom.
- */
-function vm_tooltip( id, msg, pos )
-{
- if( pos == undefined )
- pos = "top";
-
- $('#'+id).tooltip( { title: msg, placement: pos } );
- $('#'+id).tooltip( 'show' );
-}
-
-
-
-
//****************************************************************************
// DataTables http://datatables.net/blog/Twitter_Bootstrap_2
//****************************************************************************

No commit comments for this range

Something went wrong with that request. Please try again.