<div class="container-fluid" style="min-height: 450px">
<div class="row-fluid">
- <div class="span2">
+ <div class="span2 columns">
<div class="well sidebar-nav" id="sidebar-content"></div>
</div>
- <div class="span10">
+ <div class="span10 columns">
<div class="content">
<div id="user-messages"></div>
<div id="main-content"></div>
<div class="page-header">
<h2>${$.i18n.prop('users.list')}</h2>
</div>
- <ul id="users-view-tabs" class="tabs">
+ <ul id="users-view-tabs" class="nav nav-tabs" data-target="#users-view-tabs-content">
<li class="active" id="users-view-tabs-li-users-grid">
- <a href="#users-view">${$.i18n.prop('users.grid.tab.title')}</a>
+ <a data-toggle="tab" href="#users-view">${$.i18n.prop('users.grid.tab.title')}</a>
</li>
<li id="users-view-tabs-li-user-edit">
- <a href="#createUserForm" id="users-view-tabs-li-user-edit-a">${$.i18n.prop('add')}</a>
+ <a data-toggle="tab" href="#createUserForm" id="users-view-tabs-li-user-edit-a">${$.i18n.prop('add')}</a>
</li>
</ul>
<div id="users-view-tabs-content" class="tab-content">
- <div id="users-view">
+ <div id="users-view" class="tab-pane">
<button data-bind='click: sortByName' class="btn">
${$.i18n.prop('users.sort.byname')}
</button>
</table>
<div id="usersPagination"></div>
</div>
- <div id="createUserForm"></div>
+ <div id="createUserForm" class="tab-pane"></div>
</div>
</script>
window.redbackModel.usersViewModel = new usersViewModel();
window.redbackModel.usersViewModel.loadUsers();
ko.applyBindings(window.redbackModel.usersViewModel,jQuery("#main-content").get(0));
- $("#main-content #users-view-tabs").tabs();
- $("#main-content #users-view-tabs").bind('change', function (e) {
+ $("#main-content").tab('show');//#users-view-tabs
+ $("#main-content a[data-toggle='tab']").on('show', function (e) {
//$.log( $(e.target).attr("href") ); // activated tab
//e.relatedTarget // previous tab
if ($(e.target).attr("href")=="#createUserForm") {