PHP Classes

File: src/Cabin/Bridge/public/index.js

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/Cabin/Bridge/public/index.js   Download  
File: src/Cabin/Bridge/public/index.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change: CSRF rework: Now include AJAX tokens.
Date: 6 years ago
Size: 862 bytes
 

Contents

Class file image Download
$(document).ready(function() { $(".announce-dismiss").on('click', function() { var id = $(this).data('id'); $.post( $("#bridge_main_menu_left").data('linkprefix') + "announcement/dismiss", { "dismiss": id, "csrf_token": $("body").data('ajaxtoken') }, function (result) { if (result.status === 'OK') { $("#announce-" + id).remove(); var container = $("#announcements"); if (container.html().trim() === '') { container.html( "<em>" + container.data('noentries') + "</em>" ); } } } ) }); });