Sha256: 9fdb831cc4c5d62e256d8f43a28b5b332a6185744194e026417c4573e4e1e80a
Contents?: true
Size: 1.08 KB
Versions: 14
Compression:
Stored size: 1.08 KB
Contents
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. var spurs = spurs ? spurs : {}; spurs.flashes = { highest_priority_flash_container:function () { var highest = -100; var highest_item = null; $('.' + spurs.vars.flashes.container_class).each( function (idx, item) { priority = parseInt($(item).attr('id').substring($('.' + spurs.vars.flashes.container_class).attr('id').indexOf(spurs.vars.flashes.container_id_prefix) + spurs.vars.flashes.container_id_prefix.length)); if (priority > highest) { highest = priority; highest_item = $(item); } }); return highest_item; }, alert:function (message, flavor) { $.ajax({ url: spurs.vars.flashes.create_path + '.js', type:'POST', data:{ message:message, flavor:flavor } }); } }
Version data entries
14 entries across 14 versions & 1 rubygems