Pierre Goiffon
59678ef8c6
🔊 N°3731 Log calls to deprecated files / PHP methods
...
POC for the log API was added in #193
2021-04-13 17:56:21 +02:00
Pierre Goiffon
f8757c6d5d
🔇 Remove depreciation log in \WebPage::outputCollapsibleSectionInit as this call must be kept for compatibility
...
The log will be added but elsewhere, in methods only called by consumers and not by the API itself (like \WebPage::StartCollapsibleSection ?)
2021-04-13 15:45:55 +02:00
Pierre Goiffon
f6d9d0f08b
N°3731 Log deprecated calls ( #193 )
...
* New DeprecatedCallsLog logger enabled directly in bootstrap so that we can use it in the most situations
* Default Log level is now DEBUG for dev env, ERROR for others
* Logs the caller and the deprecated method called, like :
`2021-04-06 10:52:25 | Warning | AjaxPage::output L2857 calling WebPage:outputCollapsibleSectionInit | deprecated-method`
* Sample file consumer
* Sample php consumer
2021-04-13 13:55:25 +02:00
Molkobain
923a4048d3
Keyboard shortcuts: Add method to retrieve info about a particular shortcut
2021-04-13 11:46:34 +02:00
acognet
ab5e5a7f4a
Remove danger zone
2021-03-23 11:03:49 +01:00
Pierre Goiffon
de7ac4ba31
N°3833 Fix DashletBadge in Ajax causing JS error
...
* switch dashlet_badge widget init from js_template to js_on_ready_template
* add phpdoc on UIBlock::DEFAULT_JS_FILES_REL_PATH
* remove old code in \AjaxPage::output (after the return statement) that is already handled with the new Twig rendering
2021-03-19 11:49:39 +01:00
Pierre Goiffon
0ad65691d3
🚧 AjaxPage::output add TODO 3.0.0 as there is lot of code we have disabled in 410a637598
2021-03-17 18:22:44 +01:00
Stephen Abello
bab2febb24
N°3530 Replace hardcoded newsroom message indicator and add tooltip when menu is collapsed
2021-03-17 17:35:16 +01:00
Stephen Abello
a8ede8b857
N°3524 Add keyboard shortcuts to global actions
2021-03-17 11:00:16 +01:00
Molkobain
599c838fd9
Fix code highlighting instantiation for async (XHR) markup
2021-03-17 10:07:24 +01:00
Molkobain
190ac1a65a
Fix tooltips instantiation for async (XHR) markup
2021-03-17 10:07:23 +01:00
Molkobain
0d7302d530
JsonPage: Overload constructor to avoid passing a title
2021-03-16 16:40:34 +01:00
Molkobain
8dd96ea636
Copyright year bump
2021-03-15 09:29:45 +01:00
Molkobain
370c08cd68
N°3657 - Replace calls to deprecate jQuery methods (".click(callback)" to ".on('click', callback)")
2021-03-15 09:29:09 +01:00
Molkobain
c3140c2db3
Copyright year bump
2021-03-12 18:48:46 +01:00
Molkobain
1aa61fe29b
N°3748 - Deprecation: old tooltip libs in the backoffice and the portal
2021-03-12 11:15:04 +01:00
Molkobain
2710f945d8
PHPDoc
2021-03-12 09:48:35 +01:00
Molkobain
bdc8fe9db3
Session messages: Introduce severity constants
2021-03-12 09:46:34 +01:00
Pierre Goiffon
21a6be1bda
🔊 N°3811 UI.php : update error log
...
We had 2 catch blocks that were doing almost the same thing... But the last IssueLog call !
Now we have only one catch block, and the last IssueLog call is for Debug instead of Error : ErrorPage::error is already doing IssueLog::Error, so those extra info are now logged only for debugging purpose (in the 'console' channel)
2021-03-11 15:21:32 +01:00
acognet
fe5d5f3869
N°3648 - FIx size of DataTable
2021-03-11 10:32:52 +01:00
acognet
710e6e49a8
Dict entries
2021-03-11 10:29:14 +01:00
Pierre Goiffon
570b012000
N°3750 fix body data-ready-scripts attribute not visible
...
Was using .data() instead of .attr :(
Was already changed in 8efc688f for other attributes, but I forgot this one :/
2021-03-09 11:16:21 +01:00
Molkobain
56b27897cf
AjaxPage: Fix tabs handling UIBlocks incorrectly (put at the end of the flow, not in the tab container)
...
Note: Big part of the code was duplicated and still is... This should be but in a trait maybe to avoid this kind of error in the future?
2021-03-05 11:51:20 +01:00
Eric
e397cee40d
N°3785 - Use DownloadPage to download documents
2021-03-04 17:15:25 +01:00
Eric
622b486d1f
N°3785 - Use DownloadPage to download documents
2021-03-04 16:37:33 +01:00
Stephen Abello
40ceccda46
Add jquery treeview style to vendors directory
2021-03-04 10:55:23 +01:00
acognet
e27b6b2dde
N°3785 - Fix corrupted attribute file on download
2021-03-02 16:39:51 +01:00
Pierre Goiffon
77d4613bd8
N°3750 Allow to detect when ready scripts are done processing
...
In iTop 3.0.0 there are sometimes lots of scripts launched after domReady, so we needed something to know when those scripts are done !
2021-03-02 12:18:45 +01:00
Pierre Goiffon
225c176f71
N°3750 data-input-type : change XHR detection method
...
I added WebPage::IsAjaxPage, but this wasn't a good idea as XHR isn't really related to the Page impl used !
Instead we're now using the new method \utils::IsXmlHttpRequest which is a copy of \Symfony\Component\HttpFoundation\Request::isXmlHttpRequest
Many thanks @Molkobain !
2021-03-02 12:13:27 +01:00
Pierre Goiffon
c679318d16
N°3750 data-input-type : refresh attribute on AJAX refresh
2021-03-01 16:48:12 +01:00
acognet
cebbc215d7
N°3746 - Migrate modal to new UIBlock system
2021-03-01 09:07:09 +01:00
Stephen Abello
e0ae2706de
Migrate jQuery multiselect style to 3.0 design
2021-02-24 14:46:17 +01:00
Stephen Abello
8dfdc4761e
N°2844 Fix Impact Analysis pdf export
2021-02-24 14:46:16 +01:00
Molkobain
0f3eb53554
Update deprecation comment
2021-02-23 13:05:52 +01:00
Molkobain
f04a5dbfef
N°2844 - Fix image attribute display and editing
2021-02-19 22:01:51 +01:00
Stephen Abello
ea502e9c81
Allow to set a customized placeholder for ajax tabs in scrollable mode
2021-02-19 17:38:47 +01:00
Molkobain
f297cdb8b2
N°3549 - Activity panel: Fix inline images in caselogs
2021-02-17 12:47:24 +01:00
Eric
244de6915d
N°3700 - Restyle SessionMessage
2021-02-12 17:40:31 +01:00
Eric
3c60e4f765
Add Toolbar factory, Use new factory entry for cancel buttons, better check of twig errors, fix fatal error page
2021-02-09 14:43:46 +01:00
bruno-ds
2ddeebdc78
Readonly alert now has an id
...
in order to be interacted with (browser side).
2021-02-05 09:59:52 +01:00
Eric
26f800d488
N°3423 - Allow AttributeImage / AttributeDocument content to be cached by the browser (console)
2021-01-21 10:44:23 +01:00
Eric
5fe8ca178e
Add UIBlocks to twig (CollapsibleSection, FieldBadge, Panel)
2021-01-18 13:59:28 +01:00
Eric
21740123f4
Add UIBlocks to twig (generic parser and node)
...
# Conflicts:
# pages/run_query.php
# test/VisualTest/Backoffice/RenderAllUiBlocks.php
2021-01-18 12:09:07 +01:00
Eric
77808ecd41
Add UIBlocks to twig (WIP)
2021-01-18 12:03:31 +01:00
Stephen Abello
ad08376f6e
Move ScrollMagic under npm dependency
2021-01-15 11:18:34 +01:00
Stephen Abello
137b4e55c4
N°3560 Allow to scroll vertically through tabs content. User can activate this feature in preference page
2021-01-15 11:03:08 +01:00
Pierre Goiffon
09e531f11c
N°3623 new \utils::EscapeHtml method
2021-01-13 16:10:43 +01:00
Pierre Goiffon
958566da61
Merge remote-tracking branch 'origin/support/2.7' into develop
...
# Conflicts:
# application/webpage.class.inc.php
2021-01-13 15:25:24 +01:00
Pierre Goiffon
790a675d90
N°3617 collapsible components state saving : use user pref instead of localStorage
...
No migration from existing localStorage keys (introduced in 2.5.0 with N°1030) as the console UI has dramatically change in 3.0.0 : will be useful to show all the collapsible sections content once again !
Note that an iTop instance identifier was used in the localStorage key, it is no longer needed as we're getting the user pref directly from the current instance.
Thanks @Molkobain for the help !
2021-01-13 09:33:44 +01:00
Eric
503817e572
N°2737 - Migrate WebPage::table() to UIBlocks
2021-01-12 16:17:33 +01:00