Skip to content

Commit ff4613a

Browse files
committed
Updated jqFadeToFull and included jqNamespace and jqSetDataObj into the VSIX properly.
1 parent 05c2159 commit ff4613a

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed
Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
23
<CodeSnippet Format="1.4.0">
34
<Header>
45
<SnippetTypes>
56
<SnippetType>Expansion</SnippetType>
67
</SnippetTypes>
7-
<Title>Effects: fadeTo(speed, opacity, callback)</Title>
8+
<Title>jqFadeToFull</Title>
89
<Author>John Sheehan (@johnsheehan)</Author>
9-
<Shortcut>jqFadeToFull</Shortcut>
10+
<Description>Adjust the opacity of the matched elements.</Description>
1011
<HelpUrl>https://github.com/kspearrin/Visual-Studio-jQuery-Code-Snippets</HelpUrl>
12+
<Shortcut>jqFadeToFull</Shortcut>
1113
</Header>
1214
<Snippet>
1315
<Declarations>
14-
<Literal>
16+
<Literal Editable="true">
1517
<ID>selector</ID>
1618
<ToolTip>jQuery selector</ToolTip>
1719
<Default>selector</Default>
20+
<Function>
21+
</Function>
1822
</Literal>
19-
<Literal>
20-
<ID>speed</ID>
21-
<ToolTip>'slow', 'normal', 'fast' or milliseconds</ToolTip>
22-
<Default>speed</Default>
23+
<Literal Editable="true">
24+
<ID>duration</ID>
25+
<ToolTip>A string or number determining how long the animation will run.</ToolTip>
26+
<Default>duration</Default>
27+
<Function>
28+
</Function>
2329
</Literal>
24-
<Literal>
30+
<Literal Editable="true">
2531
<ID>opacity</ID>
26-
<ToolTip>Opacity to fade to between 0 and 1</ToolTip>
32+
<ToolTip>A number between 0 and 1 denoting the target opacity.</ToolTip>
2733
<Default>opacity</Default>
34+
<Function>
35+
</Function>
2836
</Literal>
29-
</Declarations>
30-
<Code Language="JavaScript">
31-
<![CDATA[$$($selector$).fadeTo($speed$, $opacity$, function () {
37+
</Declarations>
38+
<Code Language="javascript"><![CDATA[$$($selector$).fadeTo($duration$, $opacity$, function () {
3239
$end$
33-
});]]>
34-
</Code>
40+
});]]></Code>
3541
</Snippet>
3642
</CodeSnippet>
37-
</CodeSnippets>
38-
43+
</CodeSnippets>

jQueryCodeSnippets/jQueryCodeSnippets.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,12 @@
450450
<Content Include="HTML\jQuery\jqScriptValidateUnobtrusiveCdnMs.snippet">
451451
<IncludeInVSIX>true</IncludeInVSIX>
452452
</Content>
453-
<None Include="JavaScript\jQuery\jqDataSetObj.snippet" />
454-
<None Include="JavaScript\jQuery\jqNamespace.snippet" />
453+
<Content Include="JavaScript\jQuery\jqDataSetObj.snippet">
454+
<IncludeInVSIX>true</IncludeInVSIX>
455+
</Content>
456+
<Content Include="JavaScript\jQuery\jqNamespace.snippet">
457+
<IncludeInVSIX>true</IncludeInVSIX>
458+
</Content>
455459
<None Include="source.extension.vsixmanifest">
456460
<SubType>Designer</SubType>
457461
</None>

0 commit comments

Comments
 (0)