[#55,notify][xs]: correct clearNotifications to use .alert rather that .alert-messages.
This commit is contained in:
parent
ca89b8f916
commit
5c3781826a
@ -292,7 +292,7 @@ note this.model and dataset returned are the same</p> </td>
|
||||
<span class="p">}</span></pre></div> </td> </tr> <tr id="section-15"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-15">¶</a> </div> <h2>clearNotifications</h2>
|
||||
|
||||
<p>Clear all existing notifications</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">my</span><span class="p">.</span><span class="nx">clearNotifications</span> <span class="o">=</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
|
||||
<span class="kd">var</span> <span class="nx">$notifications</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="s1">'.data-explorer .alert-message'</span><span class="p">);</span>
|
||||
<span class="kd">var</span> <span class="nx">$notifications</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="s1">'.data-explorer .alert-messages .alert'</span><span class="p">);</span>
|
||||
<span class="nx">$notifications</span><span class="p">.</span><span class="nx">remove</span><span class="p">();</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
|
||||
@ -1312,7 +1312,7 @@ my.notify = function(message, options) {
|
||||
//
|
||||
// Clear all existing notifications
|
||||
my.clearNotifications = function() {
|
||||
var $notifications = $('.data-explorer .alert-message');
|
||||
var $notifications = $('.data-explorer .alert-messages .alert');
|
||||
$notifications.remove();
|
||||
}
|
||||
|
||||
|
||||
@ -324,7 +324,7 @@ my.notify = function(message, options) {
|
||||
//
|
||||
// Clear all existing notifications
|
||||
my.clearNotifications = function() {
|
||||
var $notifications = $('.data-explorer .alert-message');
|
||||
var $notifications = $('.data-explorer .alert-messages .alert');
|
||||
$notifications.remove();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user