Sha256: bf6f5018cd915fb05cdf943277e85cd7da71ea592ed6addea99d62999deae9ce

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

function notifications(){
  $.getJSON('/notifications', function(data) {
    if (data.notice != null)
      $.jnotify(data.notice, 5000);
    if (data.error != null)
      $.jnotify(data.error,'error',true);
    if (data.warning != null)
      $.jnotify(data.warning,'warning', 5000);
  });
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forgeos_commerce_front-1.9.0 app/assets/javascripts/commerce_front/functions.js