diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-26 10:45:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-26 10:45:47 +0000 |
commit | 87f475089bfb29ea05dd041441cbccd4f76e6fd6 (patch) | |
tree | 112b83f05ec07e1b4a2e3860e7e1c50703cd30e2 /public | |
parent | b43aa21c90d86594866c171320ee300bc5e9ade5 (diff) | |
download | redmine-87f475089bfb29ea05dd041441cbccd4f76e6fd6.tar.gz redmine-87f475089bfb29ea05dd041441cbccd4f76e6fd6.zip |
Use Edit instead of Write (#27758).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17525 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/jstoolbar/jstoolbar.js | 9 | ||||
-rw-r--r-- | public/javascripts/jstoolbar/lang/jstoolbar-en.js | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/public/javascripts/jstoolbar/jstoolbar.js b/public/javascripts/jstoolbar/jstoolbar.js index 98dae6ff2..608541414 100644 --- a/public/javascripts/jstoolbar/jstoolbar.js +++ b/public/javascripts/jstoolbar/jstoolbar.js @@ -52,8 +52,9 @@ function jsToolBar(textarea) { this.tabsBlock.className = 'jstTabs tabs'; var This = this; - this.writeTab = new jsTab('Write', true); - this.writeTab.onclick = function(event) { This.hidePreview.call(This, event); return false; }; + + this.editTab = new jsTab('Edit', true); + this.editTab.onclick = function(event) { This.hidePreview.call(This, event); return false; }; this.previewTab = new jsTab('Preview'); this.previewTab.onclick = function(event) { This.showPreview.call(This, event); return false; }; @@ -62,7 +63,7 @@ function jsToolBar(textarea) { elementsTab.classList = 'tab-elements'; var tabs = document.createElement('ul'); - tabs.appendChild(this.writeTab); + tabs.appendChild(this.editTab); tabs.appendChild(this.previewTab); tabs.appendChild(elementsTab); this.tabsBlock.appendChild(tabs); @@ -404,7 +405,7 @@ jsToolBar.prototype = { this.toolbar.classList.add('hidden'); this.textarea.classList.add('hidden'); this.preview.classList.remove('hidden'); - this.tabsBlock.getElementsByClassName('tab-write')[0].classList.remove('selected'); + this.tabsBlock.getElementsByClassName('tab-edit')[0].classList.remove('selected'); event.target.classList.add('selected'); }, diff --git a/public/javascripts/jstoolbar/lang/jstoolbar-en.js b/public/javascripts/jstoolbar/lang/jstoolbar-en.js index c52e85508..3d5586395 100644 --- a/public/javascripts/jstoolbar/lang/jstoolbar-en.js +++ b/public/javascripts/jstoolbar/lang/jstoolbar-en.js @@ -15,5 +15,5 @@ jsToolBar.strings['Unquote'] = 'Remove Quote'; jsToolBar.strings['Preformatted text'] = 'Preformatted text'; jsToolBar.strings['Wiki link'] = 'Link to a Wiki page'; jsToolBar.strings['Image'] = 'Image'; -jsToolBar.strings['Write'] = 'Write'; -jsToolBar.strings['Preview'] = 'Preview';
\ No newline at end of file +jsToolBar.strings['Edit'] = 'Edit'; +jsToolBar.strings['Preview'] = 'Preview'; |