apostrophe
Advanced tools
Comparing version 0.4.18 to 0.4.19
{ | ||
"name": "apostrophe", | ||
"version": "0.4.18", | ||
"version": "0.4.19", | ||
"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.", | ||
@@ -61,2 +61,2 @@ "main": "apostrophe.js", | ||
"license": "MIT" | ||
} | ||
} |
@@ -345,2 +345,10 @@ /* jshint undef: true */ | ||
// than the top, so... | ||
// Reset scroll position to what it was before this modal opened. | ||
// Really awesome if you scrolled while using the modal | ||
var $current = apos.getTopModalOrBody(); | ||
if ($current.data('aposSavedScrollTop') !== undefined) { | ||
$(window).scrollTop($current.data('aposSavedScrollTop')); | ||
} | ||
apos._modalStack.pop(); | ||
@@ -397,2 +405,4 @@ var blackoutContext = apos.getTopModalOrBody(); | ||
blackoutContext.append(blackout); | ||
// Remember scroll top so we can easily get back | ||
$el.data('aposSavedScrollTop', $(window).scrollTop()); | ||
apos._modalStack.push($el); | ||
@@ -399,0 +409,0 @@ $('body').append($el); |
@@ -1148,2 +1148,3 @@ /* global rangy, $, _ */ | ||
$item.find('[data-hyperlink-title]').val(item.hyperlinkTitle); | ||
$item.find('[data-credit]').val(item.credit); | ||
if (extraFields) { | ||
@@ -1229,2 +1230,3 @@ $item.find('[data-remove]').after('<a class="apos-slideshow-control apos-edit" data-extra-fields-edit>Edit</a>'); | ||
info.hyperlinkTitle = $item.find('[data-hyperlink-title]').val(); | ||
info.credit = $item.find('[data-credit]').val(); | ||
@@ -1240,3 +1242,2 @@ if (typeof $item.find('[data-crop-image]').attr('data-crop-x') !== 'undefined') { | ||
info.cropCoords = cropCoords; | ||
console.log(cropCoords); | ||
} | ||
@@ -1243,0 +1244,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4187565
16730