From 16b5798dc363894fd40d4bb14a6af17172fdab9f Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Thu, 19 Jan 2012 00:29:18 +0000 Subject: [PATCH 1/3] Fix typo --- public/sihnon-framework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/sihnon-framework.js b/public/sihnon-framework.js index ab8a205..5c4afb0 100644 --- a/public/sihnon-framework.js +++ b/public/sihnon-framework.js @@ -534,4 +534,4 @@ var sf = { }; // Execute the initialisation code as soon as the DOM is ready. -$('document').ready(sb.init); \ No newline at end of file +$('document').ready(sf.init); \ No newline at end of file From 42cfd88a249cd0f681d23659567e1b84c2591325 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Thu, 19 Jan 2012 00:30:19 +0000 Subject: [PATCH 2/3] Add a default close-dialog action --- public/sihnon-framework.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/sihnon-framework.js b/public/sihnon-framework.js index 5c4afb0..6ba5b4f 100644 --- a/public/sihnon-framework.js +++ b/public/sihnon-framework.js @@ -461,6 +461,10 @@ var sf = { */ callbacks: { + 'close-dialog': function(params) { + sf.ui.dialog.close(); + }, + }, /** From ac593ec3778da12a2371b045ece47a9654a4962f Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sun, 22 Jan 2012 01:10:09 +0000 Subject: [PATCH 3/3] Add version information --- public/sihnon-framework.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/sihnon-framework.js b/public/sihnon-framework.js index 6ba5b4f..0c74c94 100644 --- a/public/sihnon-framework.js +++ b/public/sihnon-framework.js @@ -18,6 +18,12 @@ * Entry point for all base framework code */ var sf = { + + /** + * Library version + * + */ + version: '0.1.0', /** * Initialises the library @@ -538,4 +544,4 @@ var sf = { }; // Execute the initialisation code as soon as the DOM is ready. -$('document').ready(sf.init); \ No newline at end of file +$('document').ready(sf.init);