~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/moinFCKplugins/moinlink/fckplugin.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
var noLink = /^(?:H1|H2|H3|H4|H5|H6|PRE|TT|IMG)$/i;
 
2
 
 
3
if (1 || !FCKBrowserInfo.IsIE){
 
4
 
 
5
function LinkState()
 
6
{
 
7
  if (FCKSelection.CheckForNodeNames(noLink))
 
8
  {
 
9
    return FCK_TRISTATE_DISABLED;
 
10
  }
 
11
  return (FCK.GetNamedCommandState('CreateLink')==FCK_TRISTATE_ON) ? 
 
12
    FCK_TRISTATE_ON : FCK_TRISTATE_OFF;
 
13
}
 
14
 
 
15
// Register the related command.
 
16
FCKCommands.RegisterCommand('Link', new FCKDialogCommand( 'Link', FCKLang.DlgLnkWindowTitle, FCKConfig.WikiBasePath + FCKConfig.WikiPage + '?action=fckdialog&dialog=link', 400, 330, LinkState, 'CreateLink')) ;
 
17
 
 
18
 
19
else
 
20
{
 
21
FCKCommands.RegisterCommand('Link', new FCKDialogCommand( 'Link', FCKLang.DlgLnkWindowTitle, FCKConfig.WikiBasePath + FCKConfig.WikiPage + '?action=fckdialog&dialog=link', 400, 330, FCK.GetNamedCommandState, 'CreateLink')) ;
 
22
 
 
23
}