Skip to content

Commit

Permalink
Item12638:
Browse files Browse the repository at this point in the history
   * better label format for edit links
   * use a css based approach instead of js hiding ecp stuff in TOC  



git-svn-id: http://svn.foswiki.org/trunk/EditChapterPlugin@17053 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Nov 6, 2013
1 parent 4f7fd95 commit f220542
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/EditChapterPlugin.pm
Expand Up @@ -22,8 +22,8 @@ use Foswiki::Plugins();
use Foswiki::Plugins::JQueryPlugin ();
use Foswiki::Contrib::JsonRpcContrib ();

our $VERSION = '4.60';
our $RELEASE = '4.60';
our $VERSION = '4.61';
our $RELEASE = '4.61';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'An easy sectional edit facility';
our $core;
Expand Down
2 changes: 1 addition & 1 deletion lib/Foswiki/Plugins/EditChapterPlugin/Core.pm
Expand Up @@ -45,7 +45,7 @@ sub new {
'<img src="%PUBURLPATH%/%SYSTEMWEB%/EditChapterPlugin/pencil.png" height="16" width="16" />';
my $editLabelFormat =
Foswiki::Func::getPreferencesValue("EDITCHAPTERPLUGIN_EDITLABELFORMAT") ||
'<noautolink><span id="$id" class="ecpHeading"> $heading <a href="#" class="ecpEdit" title="$title" data-web="$web" data-topic="$topic" data-from="$from" data-to="$to">$img</a></span><noautolink>';
'<span id="$id" class="ecpHeading"> $heading <noautolink><a href="#" class="ecpEdit" title="$title" data-web="$web" data-topic="$topic" data-from="$from" data-to="$to">$img</a></noautolink>';

my $wikiName = Foswiki::Func::getWikiName();

Expand Down
3 changes: 1 addition & 2 deletions pub/System/EditChapterPlugin/ecpjavascript.uncompressed.js
Expand Up @@ -92,8 +92,7 @@ jQuery(function($) {
});
});

// init foswikiToc
$(".foswikiToc .ecpHeading").addClass("ecpDisabled");
// init
$(".ecpHeading:not(.ecpDisabled)").hoverIntent({
timeout: 500,
over: function(event) {
Expand Down
3 changes: 3 additions & 0 deletions pub/System/EditChapterPlugin/ecpstyles.uncompressed.css
Expand Up @@ -36,3 +36,6 @@
width:98%;
margin:0px;
}
.foswikiToc .ecpHeading img {
display:none;
}

0 comments on commit f220542

Please sign in to comment.