# multi-device-switcher/1.4.2/multi-device-switcher.js

Multi Device Switcher, version 1.4.2. 15 lines.

- Page: https://pluginprobe.com/plugins/multi-device-switcher/1.4.2/code/multi-device-switcher.js
- Raw: https://pluginprobe.com/plugins/multi-device-switcher/1.4.2/raw/multi-device-switcher.js
- Modified: 2015-05-25T07:38:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/multi-device-switcher/1.4.2/code/multi-device-switcher.js#L10-L20`.

```javascript

(function($) {
	$(function() {
		if ( !$('#admin-tabs').length ) return;
		$('#admin-tabs').prepend('<ul><\/ul>');
		$('#admin-tabs > fieldset').each(function (i) {
			id = $(this).attr('id');
			caption = $(this).find('h3.label').text();
			$('#admin-tabs > ul').append('<li><a href="#' + id + '"><span>' + caption + '<\/span><\/a><\/li>');
		});

		$('#admin-tabs').tabs();
	});
})(jQuery);

```
