title: How to return true or false from jQuery noty confirmation dialog
body: <p>I have a link button inside a repeater like this:</p>
  
  <pre><code>&lt;asp:LinkButton ID="lnkDelete" runat="server" CommandName="delete" OnClientClick='javascript:return showConfirm("Are you sure you want to delete?")'
                                      CommandArgument='&lt;%# DataBinder.Eval(Container.DataItem, "ReasonId") %&gt;'&gt;Delete&lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>and I use <a href="http://ned.im/noty/" rel="nofollow">jQuery noty plugin</a> to show confirmation when user click on delete.</p>
  
  <p>The <code>showConfirm()</code> function is like this:</p>
  
  <pre><code>function showConfirm(message) {
      var n = noty({
          text: message, //'Are you sure?',
          type: 'confirm',
          dismissQueue: false,
          layout: 'center',
          theme: 'defaultTheme'
          , buttons:
              [{
                  addClass: 'btn btn-primary', text: 'Ok', onClick: function ($noty) {
                      $noty.close(); return true;
                  }
              },
              {
                  addClass: 'btn btn-danger', text: 'Cancel', onClick: function ($noty) {
                      $noty.close(); return false
                  }
              }]
      })
  
  }
  </code></pre>
  
  <p>But it won' t return <code>true</code> or <code>false</code>. How can I return <code>true</code> or <code>false</code> when clicking on <code>ok</code> or <code>cancel</code> button.?</p>