|
|
@@ -7,7 +7,7 @@
|
|
|
<a href="#user-created-list" data-toggle="tab"><i class="icon-clock"></i> Recently Created</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <a href="#user-draft-list" data-toggle="tab"><i class="icon-clock"></i> My Drafts</a>
|
|
|
+ <a href="#user-draft-list" data-toggle="tab"><i class="icon-docs"></i> My Drafts</a>
|
|
|
</li>
|
|
|
{% if user._id.toString() == pageUser._id.toString() %}
|
|
|
<li>
|
|
|
@@ -39,3 +39,18 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+<script>
|
|
|
+ function activateTab(tab){
|
|
|
+ $('.nav-tabs a[href="#' + tab + '"]').tab('show');
|
|
|
+ };
|
|
|
+
|
|
|
+ window.addEventListener('load', function(e) {
|
|
|
+ // hash on page
|
|
|
+ if (location.hash) {
|
|
|
+ if (location.hash == '#user-draft-list') {
|
|
|
+ activateTab('user-draft-list');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+</script>
|