Commit c1e2555f by yPhil

plop

parents 93e58469 63e8c3aa
Pipeline #45066 passed with stage
in 43 seconds
......@@ -285,6 +285,34 @@ PTL.tab = {
});
return groups;
},
makeNewTabButton:function($tabs) {
var $newTabButton = $('<li>')
.attr('id', 'new-group')
.attr('class', 'translate new-group hidden')
.data('title', 'Add a new group')
.attr('title', PTL.tr('Add a new group'));
var $newTabButtonLink = $('<a>')
// .attr('tabindex', '-1')
.attr('href', '#disabled');
var $newTabButtonIcon = $('<i>')
.attr('class', 'icon-plus');
$newTabButtonLink.bind('click', function(event) {
event.stopImmediatePropagation();
PTL.tab.add($tabs);
return false;
});
$newTabButtonIcon.appendTo($newTabButtonLink);
$newTabButtonLink.appendTo($newTabButton);
$newTabButton.appendTo($tabs.find('ul#tab-names'));
}
};
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