Skip to content

Commit 4458cc4

Browse files
author
pipeline
committed
feature(EJ2-5420): Home Link Added
1 parent df82600 commit 4458cc4

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed
Binary file not shown.
-6 Bytes
Binary file not shown.

src/common/component-content.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Ajax, Browser, createElement, detach, select } from '@syncfusion/ej2-ba
44
import { Tab } from '@syncfusion/ej2-react-navigations'
55
import { Tooltip } from '@syncfusion/ej2-react-popups'
66
import { TabComponent } from '@syncfusion/ej2-react-navigations';
7-
import { viewMobilePropPane, selectedTheme, sampleOverlay, switchText, removeOverlay } from './index';
7+
import { viewMobilePropPane, selectedTheme, sampleOverlay, removeOverlay } from './index';
88
import { MyWindow } from './leftpane';
99
import * as hljs from './lib/highlightjs';
1010

@@ -316,9 +316,6 @@ export class Content extends React.Component<{}, {}>{
316316
'<div class="sb-icons sb-mobile-setting sb-hide"></div>';
317317

318318
let tabContentToolbar: Element = createElement('div', { className: 'sb-content-toolbar', innerHTML: contentToolbarTemplate });
319-
if (switchText === 'mouse') {
320-
tabContentToolbar.classList.add('sb-mouse');
321-
}
322319
let ele: HTMLElement = createElement('div', { className: 'copy-tooltip', innerHTML: '<div class="e-icons copycode"></div>' });
323320
document.getElementById('sb-source-tab').appendChild(ele);
324321
let copiedTooltip: Tooltip = new Tooltip(
@@ -382,7 +379,7 @@ export class Content extends React.Component<{}, {}>{
382379
<div>
383380
<div className='sb-demo-section'>
384381
<div className="control-fluid">
385-
<div id="container-fluid">
382+
<div className="container-fluid">
386383
<div id="control-content">{routes}</div>
387384
</div>
388385
</div>

src/common/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export let setResponsiveElement: Element = select('.setting-responsive');
8383
/**
8484
* Mouse or touch setting
8585
*/
86-
export let switchText: string = localStorage.getItem('ej2-switch') ||
86+
let switchText: string = localStorage.getItem('ej2-switch') ||
8787
(window.screen.width > 1366 ? 'touch' : 'mouse');
8888
if (Browser.isDevice || window.screen.width <= 850) {
8989
switchText = 'touch';
@@ -116,7 +116,7 @@ export function setSbLink(): void {
116116
for (let sb of sbArray) {
117117
let ele: HTMLFormElement = (select('#' + sb) as HTMLFormElement);
118118
ele.href = ((link) ? ('http://' + link[1] + '/' + (link[3] ? (link[3] + '/') : '')) :
119-
('http://npmci.syncfusion.com/production/')) + (sbObj[sb] ? (sb + '/') : '') +
119+
('http://ej2.syncfusion.com/')) + (sbObj[sb] ? (sb + '/') : '') +
120120
'demos/#/' + (sample ? (sample[1] + (sb !== 'typescript' ? '' : '.html')) : '');
121121
}
122122
}

0 commit comments

Comments
 (0)