Skip to content

Commit

Permalink
Item14285: fixed error clicking on disabled btn
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jan 20, 2017
1 parent 89425d9 commit 9f711fa
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
7 changes: 4 additions & 3 deletions NatEditPlugin/data/System/NatEditPlugin.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" comment="" date="1452118054" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1484931182" format="1.1" version="1"}%
---+!! Natural Edit Plugin
%TOC%

Expand Down Expand Up @@ -54,8 +54,9 @@ is sufficient.
---++ Plugin Installation Instructions
%$INSTALL_INSTRUCTIONS%

| Copyright ©: | 2007-2015 Michael Daum http://michaeldaumconsulting.com |
| Copyright ©: | 2007-2017 Michael Daum http://michaeldaumconsulting.com |
| Change History: | |
| 20 Jan 2017 | fixed error clicking on disabled toolbar buttons |
| 06 Jan 2016 | Add helper to insert a data form table header. |
| 08 Sep 2015 | Remove RevCommentPlugin hooks from templates, Hide TopicTitle when unused. |
| 30 Aug 2015 | fixed default implementation for =topictitle= |
Expand Down Expand Up @@ -179,4 +180,4 @@ is sufficient.
%META:FIELD{name="License" title="License" value="GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]])"}%
%META:FIELD{name="Home" title="Home" value="http://foswiki.org/Extensions/%25$ROOTMODULE%25"}%
%META:FIELD{name="Support" title="Support" value="http://foswiki.org/Support/%25$ROOTMODULE%25"}%
%META:FILEATTACHMENT{name="screenshot1.png" attr="h" comment="" date="1452118054" size="64487" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="screenshot1.png" attr="h" comment="" date="1484931182" size="64487" user="ProjectContributor" version="1"}%
6 changes: 3 additions & 3 deletions NatEditPlugin/lib/Foswiki/Plugins/NatEditPlugin.pm
@@ -1,4 +1,4 @@
# Copyright (C) 2007-2015 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2007-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -30,8 +30,8 @@ BEGIN {
}
}

our $VERSION = '9.07';
our $RELEASE = '06 Jan 2016';
our $VERSION = '9.08';
our $RELEASE = '20 Jan 2017';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'A Wikiwyg Editor';
our $baseWeb;
Expand Down
@@ -1,4 +1,4 @@
# Copyright (C) 2007-2015 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2007-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,4 +1,4 @@
# Copyright (C) 2007-2015 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2007-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
4 changes: 2 additions & 2 deletions NatEditPlugin/lib/Foswiki/Plugins/NatEditPlugin/NATEDIT.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2006-2015 Michael Daum, http://michaeldaumconsulting.com
# Copyright (C) 2006-2017 Michael Daum, http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -43,7 +43,7 @@ sub new {
my $this = bless(
$class->SUPER::new(
name => 'NatEdit',
version => '4.01',
version => '4.02',
author => 'Michael Daum',
homepage => 'http://foswiki.org/Extensions/NatEditPlugin',
puburl => '%PUBURLPATH%/%SYSTEMWEB%/NatEditPlugin',
Expand Down
@@ -1,4 +1,4 @@
# Copyright (C) 2013-2015 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2013-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,4 +1,4 @@
# Copyright (C) 2013-2015 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2013-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
@@ -1,7 +1,7 @@
/*
* jQuery NatEdit plugin
*
* Copyright (c) 2008-2015 Michael Daum http://michaeldaumconsulting.com
* Copyright (c) 2008-2017 Michael Daum http://michaeldaumconsulting.com
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
Expand Down Expand Up @@ -1092,7 +1092,7 @@ $.NatEditor.prototype.handleToolbarAction = function(ev, ui) {
};
};

if (typeof(ui) ==='undefined' && ui.length === 0) {
if (typeof(ui) ==='undefined' || ui.length === 0) {
return;
}

Expand Down

0 comments on commit 9f711fa

Please sign in to comment.