]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix drag & drop file version elements
authorMarcin Haba <marcin.haba@bacula.pl>
Mon, 31 Jul 2017 05:56:40 +0000 (07:56 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Mon, 31 Jul 2017 05:56:40 +0000 (07:56 +0200)
gui/baculum/protected/Web/Pages/RestoreWizard.page

index d4d5bfdd6292eb5e7d9932bd12e57a9b7f547409..cb4c85f2d40989dcfe959473283d14d2feffe123 100644 (file)
                                                                                </com:TDraggable>
                                                                                <com:TActiveLinkButton CssClass="link" Style="float: right;" OnCallback="Page.addFileToRestore" ActiveControl.CallbackParameter="<%=isset($this->getParent()->Data['fileid']) ? $this->getParent()->Data['fileid'] : false%>" ActiveControl.EnableUpdate="false" Text="<%[ Add ]%>"/>
                                                                                <script type="text/javascript">
-                                                                                       $('#<%=$this->FileElementToRestore->ClientID%>').on('mouseup', function(event) {
+                                                                                       document.getElementById('<%=$this->FileElementToRestore->ClientID%>').addEventListener('mouseup', function(event) {
                                                                                                var el = event.target || event.srcElement;
                                                                                                if (el) {
                                                                                                        el.style.position = 'static';