Comments (9)
如果是在ethercalc中標註,這個link是要open new window,是否合適?
判斷難免有例外
from hackfoldr.
good idea! we can put that info in the 3rd column (options), which is already being parsed as json
from hackfoldr.
據clkao說在這裡
https://github.com/hackfoldr/hackfoldr/blob/master/app/app/controllers.ls#L25
from hackfoldr.
first try of livescript...
example sheet: https://ethercalc.org/hackfoldr
diff --git a/app/app/controllers.ls b/app/app/controllers.ls
index 6326fe9..862f7dc 100644
--- a/app/app/controllers.ls
+++ b/app/app/controllers.ls
@@ -23,7 +23,11 @@ angular.module 'app.controllers' <[ui.state]>
docs: HackFolder.docs
tree: HackFolder.tree
godoc: (doc) ->
- $scope.go "/#{ $scope.hackId }/#{ decodeURIComponent doc.id }"
+ if doc.opts?target == '_blank'
+ window.open doc.url, doc.id
+ return true
+ else
+ $scope.go "/#{ $scope.hackId }/#{ decodeURIComponent doc.id }"
open: (doc) ->
window.open doc.url, doc.id
return false
from hackfoldr.
@jimyhuang is now project owner, please commit if this works ;)
from hackfoldr.
是能work
但clkao,你確定我寫的對嗎 XD
對的話我就commit進去
from hackfoldr.
looks fine to me. we can add some common sites (facebook, github) check in the if
as well ;)
from hackfoldr.
yep .. trying...
from hackfoldr.
fixed~~
from hackfoldr.
Related Issues (20)
- iframes no longer sticky HOT 1
- 專案名稱誤判成google文件 HOT 2
- Hackpad中表格無法顯示 HOT 2
- 無法開啟Hackpad左上角首頁聯結
- 網址有「-」減號就無法連結 HOT 1
- Add english readme to hackfoldr/about HOT 2
- 圖示無法正常顯示
- 無法進入目錄編輯界面(ethercalc.org),只能進入編輯歷史 HOT 3
- 希望可以設定置底項目
- add facebook og:image
- 希望 Supported document types 可以新增 HackMD 和 AirTable
- ethercalc 將內容自動還原?
- google 線上文書工具部分功能無法執行
- Google 網上論壇 網址轉址異常 HOT 2
- /about page not available on beta.hackfoldr.org
- Google spreadsheet doesn't work HOT 2
- hackpad is not getting embedded into hackfoldr
- ethercalc domain changed
- googlespreadsheet can't use {"expand":true}
- 2021.08 點擊後台,無法打開 EtherCalc 後台頁面,皆跳轉到 PDFBear HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackfoldr.