Source

presentation-knockoutjs / snippets / Knockout-JSSnippets / ko4-tagedit.snippet

Full commit
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Title>ko4-tagedit</Title>
      <Author>Steve Michelotti</Author>
      <Description>
      </Description>
      <HelpUrl>
      </HelpUrl>
      <Shortcut>ko4tagedit</Shortcut>
    </Header>
    <Snippet>
      <Code Language="jscript"><![CDATA[$$(".tag-edit").live("click", function () {
        $$("#tagDialog").dialog({
            buttons: {
                Save: function () { $$(this).dialog("close"); },
                Cancel: function () { $$(this).dialog("close"); }
            }
        });
    });]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>