From b4c8bc13c260509bb54479f120e42c3be9fe30a9 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Fri, 9 Aug 2013 18:31:46 +0300 Subject: [PATCH] Db schema changed. Reinstall needed :) --- appinfo/database.xml | 49 ++++++++++++++++++++++++++++++++++++++++++-- appinfo/version | 2 +- js/office.js | 4 ++-- 3 files changed, 50 insertions(+), 5 deletions(-) diff --git a/appinfo/database.xml b/appinfo/database.xml index fa7ddfcb..5a5eb0ff 100644 --- a/appinfo/database.xml +++ b/appinfo/database.xml @@ -56,6 +56,49 @@ + + *dbprefix*office_member + + + member + integer + 1 + true + 1 + true + 4 + Unique per user and session + + + es_id + text + true + 64 + Related editing session id + + + displayname + text + + 64 + + + color + text + + 32 + + + last_activity + integer + + true + true + 4 + + +
+ *dbprefix*office_op @@ -78,9 +121,11 @@ member - text - 128 + integer + 1 true + true + 4 User and time specific diff --git a/appinfo/version b/appinfo/version index e4c0d46e..ea2303bc 100755 --- a/appinfo/version +++ b/appinfo/version @@ -1 +1 @@ -1.0.3 \ No newline at end of file +0.5 \ No newline at end of file diff --git a/js/office.js b/js/office.js index b868048d..bcee1275 100644 --- a/js/office.js +++ b/js/office.js @@ -112,7 +112,7 @@ var officeMain = { $(document.body).append('
'); } $('
'+s.es_id+ '
').appendTo('#allsessions').click( - function(event){ + function(event){ event.preventDefault(); officeMain.onView(s); } @@ -142,6 +142,6 @@ $(document).ready(function() { officeMain.registerSession($(this).attr('data-file')); }); $('#odf_close').live('click', officeMain.onClose); - OC.addScript('office', 'dojo-amalgamation', officeMain.onStartup); $('#session-list').click(officeMain.showSessions); + OC.addScript('office', 'dojo-amalgamation', officeMain.onStartup); });