From d1be6b1566cff5e39206a8a53abf745d80d2afca Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 21 Jul 2013 15:38:53 +0100 Subject: [PATCH] Google Drive realtime sync --- css/default.css | 5 ++ img/icons.png | Bin 4289 -> 5551 bytes index.html | 21 +++-- js/extensions/buttonSync.js | 37 +++----- js/extensions/dialogManageSynchronization.js | 3 +- js/extensions/documentSelector.js | 6 +- js/extensions/documentTitle.js | 6 +- js/helpers/googleHelper.js | 6 +- .../dialogManageSynchronizationLocation.html | 4 +- js/providers/gdriveProvider.js | 81 +++++++++++++++--- js/synchronizer.js | 9 +- 11 files changed, 121 insertions(+), 57 deletions(-) diff --git a/css/default.css b/css/default.css index ca58473e..f648e252 100644 --- a/css/default.css +++ b/css/default.css @@ -478,6 +478,11 @@ div.dropdown-menu textarea { background-position: -19px 0; } +.icon-gdrive.realtime { + width: 18px; + background-position: -180px 0; +} + .icon-dropbox { background-image: url("../img/icons.png") !important; width: 16px; diff --git a/img/icons.png b/img/icons.png index d7fe732b825f467ac16fba8cd8e1ffb46ca4e156..a656096d5a56e99b94ccdaf704ef0076ccb69b73 100644 GIT binary patch delta 5519 zcmV;A6>#doA+IZtQhx^(4k9bI15Abh02Mq*L_t(|+U1*hd{x!8$G`jBd+tqchMN!q zgd`9`7y?2JxS8Mr(bxCh`h3pko@uXh?mm0{)_+>RwYT8^k;KKtjWZYw zzXGNUA;JNql*PbaP180XJ$m%e#oEi|$jf=2*og2vj-9^vMn$ki2oZKUdZd)4x@76e zz1u$S>U#W&HN$}Az)yg9_vs_RzkrQL)<1sg`|jIKzI=Km?Upq$<#O(S_~D2BfTw_Y zKp0R3{1td^?SI;}mEP+4$L(Xg)pOH(hbzC&zLFqTCnH8=CAE!@6C+dPs$`_#^2XTJ zis*Pke=^jo7f_x%CoXkQ;_fG+B8v<1QsT=yUaA2GsblxoT&#UW(u=+Xh0a2euOP*y zBD?l1Z!T^IVBt2Oa3AFD*YzDjh|_N4 z8lou5Two0FZf$MtJvli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