Commit 21204817 by Brian Talbot

studio - corrected JQ selector for smoothscrolling in-page links

parent 8abba395
...@@ -81,7 +81,7 @@ $(document).ready(function () { ...@@ -81,7 +81,7 @@ $(document).ready(function () {
}); });
// general link management - smooth scrolling page links // general link management - smooth scrolling page links
$('a[rel*="view"]').bind('click', linkSmoothScroll); $('a[rel*="view"][href^="#"]').bind('click', smoothScrollLink);
// toggling overview section details // toggling overview section details
...@@ -148,7 +148,7 @@ $(document).ready(function () { ...@@ -148,7 +148,7 @@ $(document).ready(function () {
}); });
}); });
function linkSmoothScroll(e) { function smoothScrollLink(e) {
(e).preventDefault(); (e).preventDefault();
$.smoothScroll({ $.smoothScroll({
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
<figcaption class="description">Simple two-level outline to organize your couse. Drag and drop, and see your course at a glance.</figcaption> <figcaption class="description">Simple two-level outline to organize your couse. Drag and drop, and see your course at a glance.</figcaption>
</figure> </figure>
<a href="#" rel="view" class="action action-modal-close"> <a href="" rel="view" class="action action-modal-close">
<i class="ss-icon ss-symbolicons-block icon icon-close">&#x2421;</i> <i class="ss-icon ss-symbolicons-block icon icon-close">&#x2421;</i>
<span class="label">close modal</span> <span class="label">close modal</span>
</a> </a>
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
<figcaption class="description">Quickly create videos, text snippets, inline discussions, and a variety of problem types.</figcaption> <figcaption class="description">Quickly create videos, text snippets, inline discussions, and a variety of problem types.</figcaption>
</figure> </figure>
<a href="#" rel="view" class="action action-modal-close"> <a href="" rel="view" class="action action-modal-close">
<i class="ss-icon ss-symbolicons-block icon icon-close">&#x2421;</i> <i class="ss-icon ss-symbolicons-block icon icon-close">&#x2421;</i>
<span class="label">close modal</span> <span class="label">close modal</span>
</a> </a>
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
<figcaption class="description">Simply set the date of a section or subsection, and Studio will publish it to your students for you.</figcaption> <figcaption class="description">Simply set the date of a section or subsection, and Studio will publish it to your students for you.</figcaption>
</figure> </figure>
<a href="#" rel="view" class="action action-modal-close"> <a href="" rel="view" class="action action-modal-close">
<i class="ss-icon ss-symbolicons-block icon icon-close">&#x2421;</i> <i class="ss-icon ss-symbolicons-block icon icon-close">&#x2421;</i>
<span class="label">close modal</span> <span class="label">close modal</span>
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment