Permalink
Browse files

Add domCopy setting for DOM filter. Fix #118

  • Loading branch information...
1 parent 2e10559 commit bb67c0e30deb46e6cce42dd91159fa38776317cb @nyroDev committed Oct 21, 2012
Showing with 5 additions and 2 deletions.
  1. +2 −2 js/jquery.nyroModal.filters.dom.js
  2. +3 −0 js/jquery.nyroModal.js
@@ -20,12 +20,12 @@ jQuery(function($, undefined) {
load: function(nm) {
nm.store.domEl = $(nm.store.link.sel);
if (nm.store.domEl.length)
- nm._setCont(nm.store.domEl.contents());
+ nm._setCont(nm.domCopy ? nm.store.domEl.html() : nm.store.domEl.contents());
else
nm._error();
},
close: function(nm) {
- if (nm.store.domEl && nm.elts.cont)
+ if (!nm.domCopy && nm.store.domEl && nm.elts.cont)
nm.store.domEl.append(nm.elts.cont.find('.nyroModalDom').contents());
}
}
@@ -34,6 +34,9 @@ jQuery(function($, undefined) {
galleryCounts: true, // Indicates if the gallery counts should be shown
ltr: true, // Left to Right by default. Put to false for Hebrew or Right to Left language. Used in gallery filter
+ // Specific confirguation for DOM filter
+ domCopy: false,
+
// Specific confirguation for image filter
imageRegex: '[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$', // Regex used to detect image link

0 comments on commit bb67c0e

Please sign in to comment.