diff options
author | emkael <emkael@tlen.pl> | 2016-04-21 14:57:18 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-04-21 14:58:04 +0200 |
commit | 74314964db93376124c1736ea69f064e4c8a95b1 (patch) | |
tree | b3438fb9ade804d6a94a72659b9ae9078e17ec55 | |
parent | a13ab5d2e66517e8c83a8b302ea593a9fece4cfe (diff) |
* JS loader on calendar scaffold actions
-rw-r--r-- | app/php/controls/CalendarScaffold.php | 4 | ||||
-rw-r--r-- | app/php/controls/CalendarScaffold.tpl | 1 | ||||
-rw-r--r-- | app/php/controls/scripts/CalendarScaffold.js | 8 |
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); + } +); |