apostrophe
Advanced tools
Comparing version 0.4.134 to 0.4.135
{ | ||
"name": "apostrophe", | ||
"version": "0.4.134", | ||
"version": "0.4.135", | ||
"description": "Apostrophe is a user-friendly content management system. This core module of Apostrophe provides rich content editing and essential facilities to integrate Apostrophe into your Express project. Apostrophe also includes simple facilities for storing your rich content areas in MongoDB and fetching them back again. Additional functionality is available in modules like apostrophe-pages, apostrophe-snippets, apostrophe-blog, apostrophe-events, apostrophe-twitter and apostrophe-rss.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/apostrophe.js", |
@@ -251,13 +251,28 @@ /* jshint undef: true */ | ||
$(document).on('keyup.aposModal', function(e) { | ||
if (e.keyCode === 27) { | ||
var topModal = apos.getTopModalOrBody(); | ||
if (topModal.filter('.apos-modal')) { | ||
topModal.trigger('aposModalHide'); | ||
return false; | ||
} else { | ||
return true; | ||
// $(document).on('keyup.aposModal', function(e) { | ||
// // console.log(e); | ||
// }); | ||
function closeModal() { | ||
var topModal = apos.getTopModalOrBody(); | ||
if (topModal.filter('.apos-modal')) { | ||
topModal.trigger('aposModalHide'); | ||
return false; | ||
} else { | ||
return true; | ||
} | ||
} | ||
$( document ).on({ | ||
'keyup.aposModal': function(e) { | ||
if (e.keyCode === 27) { | ||
closeModal(); | ||
} | ||
}, | ||
click: function(e) { | ||
if (e.target.className === 'apos-modal-blackout'){ | ||
closeModal(); | ||
} | ||
} | ||
return true; | ||
}); | ||
@@ -264,0 +279,0 @@ } |
Sorry, the diff of this file is not supported yet
4383327
36939