This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Router: a router that can be combined with jquery.pjax.js [1] | |
| // | |
| // [1] https://github.com/defunkt/jquery-pjax | |
| // | |
| // This file is in the public domain. | |
| // | |
| // | |
| // var router = new Router(); | |
| // $(document).on('pjax:end', function () { router.dispatch(location); }); | |
| // $(function () { router.dispatch(location); }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Uncomment below to verify the number of nodes returned is the same as the number of nodes that is in the Recycle Bin | |
| -- SELECT * FROM umbracoNode WHERE path LIKE '%-20%' AND id != -20 | |
| -- Delete all 'related' nodes and table contents... | |
| DELETE FROM cmsPreviewXml WHERE nodeId IN (SELECT id FROM umbracoNode WHERE path LIKE '%-20%' AND id != -20) | |
| DELETE FROM cmsContentVersion WHERE contentId IN (SELECT id FROM umbracoNode WHERE path LIKE '%-20%' AND id != -20) | |
| DELETE FROM cmsDocument WHERE nodeId IN (SELECT id FROM umbracoNode WHERE path LIKE '%-20%' AND id != -20) | |
| DELETE FROM cmsContentXML WHERE nodeId IN (SELECT id FROM umbracoNode WHERE path LIKE '%-20%' AND id != -20) | |
| DELETE FROM cmsContent WHERE nodeId IN (SELECT id FROM umbracoNode WHERE path LIKE '%-20%' AND id != -20) | |
| DELETE FROM cmsPropertyData WHERE contentNodeId IN (SELECT id FROM umbracoNode WHERE path LIKE '%-20%' AND id != -20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <content name="script"> | |
| <script type="text/coffeescript"> | |
| $().ready -> | |
| $("*[data-uri]").each (el) -> | |
| rendertemplate = Tempo.prepare(el); | |
| uri = el.attribute "data-uri" | |
| refresh = el.attribute "data-refresh" | |
| $.retrieveJSON uri , {}, (data) -> | |
| rendertemplate.render data |
NewerOlder