{"action":"created","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1055","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1055/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1055/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1055/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1055","id":90836421,"number":1055,"title":"Extension MultiSort when used with Toolbar creates two multi sort buttons in toolbar","user":{"login":"tmorehouse","id":2781561,"avatar_url":"https://avatars.githubusercontent.com/u/2781561?v=3","gravatar_id":"","url":"https://api.github.com/users/tmorehouse","html_url":"https://github.com/tmorehouse","followers_url":"https://api.github.com/users/tmorehouse/followers","following_url":"https://api.github.com/users/tmorehouse/following{/other_user}","gists_url":"https://api.github.com/users/tmorehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/tmorehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmorehouse/subscriptions","organizations_url":"https://api.github.com/users/tmorehouse/orgs","repos_url":"https://api.github.com/users/tmorehouse/repos","events_url":"https://api.github.com/users/tmorehouse/events{/privacy}","received_events_url":"https://api.github.com/users/tmorehouse/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/labels/extension","name":"extension","color":"005299"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-25T02:58:43Z","updated_at":"2015-06-25T03:15:44Z","closed_at":"2015-06-25T03:15:44Z","body":"When using both multi-sort and toolbar (for advanced search) extensions, two advanced sort buttons appear, as can be seen in this screen grab:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2781561/8345892/a75b58e6-1acb-11e5-8912-e67611973a14.png)\r\n\r\nI believe this code (in the multi-sort extension):\r\n\r\n    BootstrapTable.prototype.initToolbar = function() {\r\n        this.showToolbar = true;\r\n        var that = this,\r\n            sortModalId = '#sortModal_' + this.$el.attr('id');\r\n        this.$sortModal = $(sortModalId);\r\n\r\n        _initToolbar.apply(this, Array.prototype.slice.apply(arguments));\r\n\r\n        if (this.options.showMultiSort) {\r\n            var $btnGroup = this.$toolbar.find('>.btn-group'),\r\n                $multiSortBtn = $btnGroup.find('div.multi-sort');\r\n\r\nShould be modified to find only the first button group (or last button group):\r\n\r\n        if (this.options.showMultiSort) {\r\n            var $btnGroup = this.$toolbar.find('>.btn-group').first(),\r\n                $multiSortBtn = this.$toolbar.find('div.multi-sort');\r\n"},"comment":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/comments/115086940","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1055#issuecomment-115086940","issue_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1055","id":115086940,"user":{"login":"djhvscf","id":4496763,"avatar_url":"https://avatars.githubusercontent.com/u/4496763?v=3","gravatar_id":"","url":"https://api.github.com/users/djhvscf","html_url":"https://github.com/djhvscf","followers_url":"https://api.github.com/users/djhvscf/followers","following_url":"https://api.github.com/users/djhvscf/following{/other_user}","gists_url":"https://api.github.com/users/djhvscf/gists{/gist_id}","starred_url":"https://api.github.com/users/djhvscf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djhvscf/subscriptions","organizations_url":"https://api.github.com/users/djhvscf/orgs","repos_url":"https://api.github.com/users/djhvscf/repos","events_url":"https://api.github.com/users/djhvscf/events{/privacy}","received_events_url":"https://api.github.com/users/djhvscf/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T03:15:44Z","updated_at":"2015-06-25T03:15:44Z","body":"Thanks"}}