Author: bpoussin Date: 2013-09-25 07:36:58 +0200 (Wed, 25 Sep 2013) New Revision: 367 Url: http://chorem.org/projects/bow/repository/revisions/367 Log: - remove old background.html (now background.js) - change input text to textarea for description Removed: trunk/bow-extension-chromium/src/main/webapp/background.html Modified: trunk/bow-extension-chromium/src/main/webapp/css/extension.css trunk/bow-extension-chromium/src/main/webapp/popup.html trunk/bow-extension-chromium/src/main/webapp/popup.js Deleted: trunk/bow-extension-chromium/src/main/webapp/background.html =================================================================== --- trunk/bow-extension-chromium/src/main/webapp/background.html 2013-09-24 18:07:52 UTC (rev 366) +++ trunk/bow-extension-chromium/src/main/webapp/background.html 2013-09-25 05:36:58 UTC (rev 367) @@ -1,57 +0,0 @@ -<!-- - #%L - bow - - $Id$ - $HeadURL$ - %% - Copyright (C) 2010 CodeLutin - %% - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. - #L% - --> -<html> - <head> - <script> - var tabInfos = new Array(); - var currentTabId; - - function getTabInfos() { - return tabInfos[currentTabId]; - }; - - // Called when the url of a tab changes. - function showAction(tabId, changeInfo, tab) { - // ... show the page action. - chrome.pageAction.show(tabId); - tabInfos[tabId] = { - "title" : tab.title, - "url" : tab.url - }; - }; - - // Listen for any changes to the URL of any tab. - chrome.tabs.onUpdated.addListener(showAction); - - function updateCurrentTabId(tabId, selectInfo) { - currentTabId = tabId; - }; - - // Listen for any tab selection changes. - chrome.tabs.onSelectionChanged.addListener(updateCurrentTabId); - - </script> - </head> -</html> - Modified: trunk/bow-extension-chromium/src/main/webapp/css/extension.css =================================================================== --- trunk/bow-extension-chromium/src/main/webapp/css/extension.css 2013-09-24 18:07:52 UTC (rev 366) +++ trunk/bow-extension-chromium/src/main/webapp/css/extension.css 2013-09-25 05:36:58 UTC (rev 367) @@ -66,3 +66,8 @@ text-align: center; text-color: red; } + +textarea { + width: 100%; + height: 100px; +} Modified: trunk/bow-extension-chromium/src/main/webapp/popup.html =================================================================== --- trunk/bow-extension-chromium/src/main/webapp/popup.html 2013-09-24 18:07:52 UTC (rev 366) +++ trunk/bow-extension-chromium/src/main/webapp/popup.html 2013-09-25 05:36:58 UTC (rev 367) @@ -35,7 +35,7 @@ <label for="nameInput" id="nameInputLabel"></label> </div> <div class="inputs"> - <input id="nameInput" name="nameInput" type="text" /> + <textarea id="nameInput" name="nameInput"></textarea> </div> <div class="labels"> <label for="aliasInput" id="aliasInputLabel"></label> Modified: trunk/bow-extension-chromium/src/main/webapp/popup.js =================================================================== --- trunk/bow-extension-chromium/src/main/webapp/popup.js 2013-09-24 18:07:52 UTC (rev 366) +++ trunk/bow-extension-chromium/src/main/webapp/popup.js 2013-09-25 05:36:58 UTC (rev 367) @@ -104,6 +104,7 @@ var buttons = document.getElementById("buttons"); buttons.innerHTML = chrome.i18n.getMessage("noTokenMessage"); } + } function isEmpty(string) { @@ -114,4 +115,4 @@ init(); document.getElementById('permanentTokenButton').addEventListener('click', bookmarkPermanent); document.getElementById('sessionTokenButton').addEventListener('click', bookmarkSession); -}); \ No newline at end of file +});