Formate code

This commit is contained in:
Lennart Blom 2018-12-02 19:15:27 +01:00
parent e3437daefe
commit 249d021152

View file

@ -1,58 +1,60 @@
<!-- <!--
Copyright (C) 2016 Jones Magloire @Joxit Copyright (C) 2016 Jones Magloire @Joxit
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details. GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
--> -->
<remove> <remove>
<material-popup> <material-popup>
<div class="material-popup-title">Remove your Registry Server ?</div> <div class="material-popup-title">Remove your Registry Server ?</div>
<div class="material-popup-content"> <div class="material-popup-content">
<ul class="list"> <ul class="list">
<li each="{ url in registryUI.getRegistryServer() }"> <li each="{ url in registryUI.getRegistryServer() }">
<span> <span>
<a href="#" onClick="registryUI.removeTag.removeUrl('{url}');"> <a href="#" onClick="registryUI.removeTag.removeUrl('{url}');">
<i class="material-icons">delete</i> <i class="material-icons">delete</i>
</a> </a>
<span class="url">{ url }</span> <span class="url">{ url }</span>
</span> </span>
</li> </li>
</ul> </ul>
</div> </div>
<div class="material-popup-action"> <div class="material-popup-action">
<material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="registryUI.removeTag.close();">Close</material-button> <material-button class="dialog-button" waves-color="rgba(158,158,158,.4)" onClick="registryUI.removeTag.close();">
</div> Close
</material-button>
</div>
</material-popup> </material-popup>
<script type="text/javascript"> <script type="text/javascript">
registryUI.removeTag = registryUI.removeTag || {} registryUI.removeTag = registryUI.removeTag || {}
registryUI.removeTag.update = this.update; registryUI.removeTag.update = this.update;
registryUI.removeTag.removeUrl = function (url) { registryUI.removeTag.removeUrl = function(url) {
registryUI.removeServer(url); registryUI.removeServer(url);
registryUI.removeTag.close(); registryUI.removeTag.close();
}; };
registryUI.removeTag.close = function () { registryUI.removeTag.close = function() {
registryUI.removeTag.dialog.close(); registryUI.removeTag.dialog.close();
registryUI.removeTag.update(); registryUI.removeTag.update();
}; };
registryUI.removeTag.show = function () { registryUI.removeTag.show = function() {
registryUI.removeTag.dialog.open(); registryUI.removeTag.dialog.open();
}; };
this.one('mount', function () { this.one('mount', function() {
registryUI.removeTag.dialog = this.tags['material-popup']; registryUI.removeTag.dialog = this.tags['material-popup'];
}); });
</script> </script>