summaryrefslogtreecommitdiff
path: root/app/php/controls
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/controls')
-rw-r--r--app/php/controls/CalendarScaffold.php4
-rw-r--r--app/php/controls/CalendarScaffold.tpl1
-rw-r--r--app/php/controls/scripts/CalendarScaffold.js8
3 files changed, 13 insertions, 0 deletions
diff --git a/app/php/controls/CalendarScaffold.php b/app/php/controls/CalendarScaffold.php
index dd8a80e..d3f0970 100644
--- a/app/php/controls/CalendarScaffold.php
+++ b/app/php/controls/CalendarScaffold.php
@@ -126,6 +126,10 @@ class CalendarScaffold extends TemplateControl {
}
}
+ protected function getPradoScriptDependencies() {
+ return ['jquery'];
+ }
+
}
?>
diff --git a/app/php/controls/CalendarScaffold.tpl b/app/php/controls/CalendarScaffold.tpl
index 6688869..cb0554e 100644
--- a/app/php/controls/CalendarScaffold.tpl
+++ b/app/php/controls/CalendarScaffold.tpl
@@ -1,4 +1,5 @@
<com:TActiveDataGrid ID="Calendars"
+ CssClass="calendarScaffold"
DataKeyField="UID"
AutoGenerateColumns="false"
OnEditCommand="editRow"
diff --git a/app/php/controls/scripts/CalendarScaffold.js b/app/php/controls/scripts/CalendarScaffold.js
new file mode 100644
index 0000000..58a7f73
--- /dev/null
+++ b/app/php/controls/scripts/CalendarScaffold.js
@@ -0,0 +1,8 @@
+$('body').on(
+ 'click',
+ 'main table.calendarScaffold tbody a[href^="javascript:;//"]',
+ function(e) {
+ var loader = $('<div>').addClass('calendarScaffoldLoader');
+ $('main div[id$="_Container"]').append(loader);
+ }
+);