Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #258 from Codeinwp/development
Browse files Browse the repository at this point in the history
Fix for tooltip admin behavior.
  • Loading branch information
selul authored Dec 28, 2017
2 parents fe70f19 + 85c7c56 commit 0cfec18
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ vendor
composer.lock
bin/
package-lock.json
themeisle-hash.json
7 changes: 7 additions & 0 deletions admin/css/wp-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,10 @@ input#save.pirate-forms-save-button {
.pirate-forms-password-toggle span.dashicons {
cursor: pointer;
}
.toplevel_page_pirateforms-admin .ui-tooltip{
background: #333;
color:#fff;
padding:5px;
width:300px;
border-radius: 5px;
}
30 changes: 22 additions & 8 deletions admin/js/scripts-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,26 @@ function initAll(){
}
});

// tootips in settings.
jQuery( document ).tooltip({
items: '.dashicons-editor-help',
hide: 2000,
content: function(){
return jQuery(this).find('div').html();
}
});
// tootips in settings.
jQuery(document).tooltip({
items: '.dashicons-editor-help',
hide: 200,
position: {within: '#pirate-forms-main'},

content: function () {
return jQuery(this).find('div').html();
},
show: null,
close: function (event, ui) {
ui.tooltip.hover(
function () {
jQuery(this).stop(true).fadeTo(400, 1);
},
function () {
jQuery(this).fadeOut('400', function () {
jQuery(this).remove();
});
});
}
});
}
2 changes: 1 addition & 1 deletion grunt/aliases.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
deploy:
pre_deploy:
- 'faq_builder'
2 changes: 1 addition & 1 deletion includes/class-pirateforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class PirateForms {
public function __construct() {

$this->plugin_name = 'pirateforms';
$this->version = '2.3.1';
$this->version = '2.3.2';

$this->load_dependencies();
$this->set_locale();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pirate-forms",
"version": "2.3.1",
"version": "2.3.2",
"description": "Pirate Forms plugin",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions pirate-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Free & Simple Contact Form Plugin - Pirateforms
* Plugin URI: http://themeisle.com/plugins/pirate-forms/
* Description: Easily creates a nice looking, simple contact form on your WP site.
* Version: 2.3.1
* Version: 2.3.2
* Author: Themeisle
* Author URI: http://themeisle.com
* Text Domain: pirate-forms
Expand All @@ -36,7 +36,7 @@
define( 'PIRATEFORMS_NAME', 'Pirate Forms' );
define( 'PIRATEFORMS_SLUG', 'pirate-forms' );
define( 'PIRATEFORMS_USELL_LINK', 'https://themeisle.com/plugins/pirate-forms-extended/' );
define( 'PIRATE_FORMS_VERSION', '2.3.1' );
define( 'PIRATE_FORMS_VERSION', '2.3.2' );
define( 'PIRATEFORMS_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'PIRATEFORMS_URL', plugin_dir_url( __FILE__ ) );
define( 'PIRATEFORMS_BASENAME', plugin_basename( __FILE__ ) );
Expand Down
2 changes: 1 addition & 1 deletion public/css/front.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Version: 2.3.1
Version: 2.3.2
*/
.pirate_forms_wrap .form_field_wrap,
.widget .pirate_forms_wrap .form_field_wrap {
Expand Down

0 comments on commit 0cfec18

Please sign in to comment.