diff --git a/openslides/agenda/static/css/agenda.css b/openslides/agenda/static/css/agenda.css deleted file mode 100644 index 543c40636..000000000 --- a/openslides/agenda/static/css/agenda.css +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Styles for web interface of agenda app - * - */ - -/* Agenda overview page */ -tr.topline td { - border-bottom: 1px solid #333333; - background-color: #CDCDCD; -} -table#agendatime { - width: auto; - margin-bottom: 1em; - font-size: 12px; -} -table#agendatime td { - padding: 3px; - white-space: nowrap; -} - - -/*** List of speakers ***/ -/* List of speakers – agenda item view */ -div#complete_list_of_speakers li { - list-style-type: none; -} -div#complete_list_of_speakers li { - line-height: 30px; -} -#coming_speakers span.ui-icon { - position: absolute; - margin-left: -15px; - margin-top: 6px; -} - - -/*** Style for agenda sorting ***/ -ol { - margin: 0; - padding: 0; - padding-left: 30px; -} -ol.agenda_list, ol.agenda_list ol { - margin: 0 0 0 25px; - padding: 0; - list-style-type: none; -} -ol.agenda_list { - margin: 0; -} -.agenda_list li { - margin: 5px 0 0 0; - padding: 0; -} -.agenda_list li > div { - border: 1px solid #d4d4d4; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; - border-color: #D4D4D4 #D4D4D4 #BCBCBC; - padding: 6px; - margin: 0; - background: #f6f6f6; - background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%); - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(47%,#f6f6f6), color-stop(100%,#ededed)); - background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); - background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); - background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); - background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 47%,#ededed 100%); - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); - overflow: auto; -} -.agenda_list li > div.activeline { - background: #bed4de !important; -} -.agenda_list.sortable li > div { - cursor: move; -} -.disclose { - cursor: pointer; - width: 10px; - display: none; -} -.placeholder { - outline: 1px dashed #4183C4; -} -.agenda_list .openclose { width: 40px; float: left; min-height: 1px; } -.agenda_list .duration { width: 92px; float: right; min-height: 1px; text-align: right; padding-right: 15px; } -.agenda_list .manage { width: 200px; float: right; min-height: 1px; padding-left: 15px; } -.agenda_list .title { float: left; padding-left: 5px;} -.agenda_list .optional { float: left; } -.agenda_list .opener_closer { float: left; margin-right: 8px; margin-left:-4px;} -.agenda_list .opener_closer .btn { padding: 0 2px; } -.agenda_list .optional { float: right; width: 208px; padding-left: 8px;} - -#menu-overview .manage { width: 200px; } -#menu-overview .duration { width: 65px; text-align: right; padding-right: 19px;} -#menu-overview .optional { width: 200px; } - -@media screen and (max-width: 1000px) { - #menu-overview .optional { width: 150px; } - .agenda_list .optional { float: right; width: 158px; padding-left: 8px;} -} -@media screen and (max-width: 800px) { - #menu-overview .optional { width: 100px; } - .agenda_list .optional { float: right; width: 108px; padding-left: 8px;} -} -.agenda_list .opener, .agenda_list .closer { } -.agenda_list .opener { display: none; } -.agenda_list li.closed ol { display: none; } -.agenda_list li.closed .closer { display: none; } -.agenda_list li.closed > div .opener { display: inline-block; } - - -@media (max-width: 480px) { - #menu-overview .manage, .agenda_list .manage { - width: 50px; - } - .agenda_list .manage { - padding-right: 14px; - } - #menu-overview .duration, .agenda_list .duration { - width: 60px; - } - .agenda_list .duration { - padding-right: 11px; - } -} diff --git a/openslides/agenda/static/css/agenda_projector.css b/openslides/agenda/static/css/agenda_projector.css deleted file mode 100644 index 30a68b7ac..000000000 --- a/openslides/agenda/static/css/agenda_projector.css +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Styles for projector slides of agenda app - * - */ - -/*** List of speakers – projector slide ***/ -ul#list_of_speakers { - list-style-type: none; - padding: 0;} -#list_of_speakers li { - font-size: 130%; - line-height: 150%;} -#list_of_speakers .old_speaker { - color: #9FA9B7;} -#list_of_speakers .actual_speaker { - font-weight: bold; - margin-bottom: 0.5em;} - - -/*** List of speakers – overlay ***/ -#overlay_list_of_speaker_box { - position: fixed; - bottom: 0; - right: 0; - border-radius: 0.4em; - border: 0.1em solid #777777; - background-color: #cccccc; - opacity: 0.9; - padding: 1em; - margin: 1em; - z-index: 2; - width: 45%; - min-width: 200px;} -#overlay_list_of_speaker_box h3 { - margin: 5px;} -#overlay_list_of_speaker_box ul { - list-style-type: none; - margin: 5px;} -#overlay_list_of_speaker_box li { - font-size: 120%; - line-height: 120%;} -#overlay_list_of_speaker_box .old_speaker { - color: #777777;} -#overlay_list_of_speaker_box .actual_speaker { - font-weight: bold; - margin-bottom: 0em;} - - -/*** Agenda Items ***/ -.itemlist { - margin-top: 20px; -} -.itemlist li { - font-size:130%; - padding-bottom: 20px; - list-style-type: none; -} -.itemlist .closed { - color: #9FA9B7; - list-style-type: none; -} diff --git a/openslides/assignments/static/css/assignments.css b/openslides/assignments/static/css/assignments.css deleted file mode 100644 index 0d2a8aa65..000000000 --- a/openslides/assignments/static/css/assignments.css +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Styles for web interface of assignment app - * - */ - - -/* Navigation icons (mapping to glyphicons-halflings) */ -.icon-charts { - background-image: url("../img/glyphicons_041_charts.png"); - background-position: 0px center; -} -.leftmenu ul li.active a span.ico i.icon-charts { - background-image: url("../img/glyphicons_041_charts_white.png"); -} - -/* Election result table */ -#election-result-table td.elected { - background-color: #BED4DE !important; -} -#election-result-table td.elected a.election_link { - background-image: url(../img/voting-yes.png); - background-repeat: no-repeat; - background-position: center; - width: 16px; - height: 16px; - display: block; - margin-right: 5px; - float: left; -} -#election-result-table td a.election_link { - background-image: url(../img/voting-yes-grey.png); - background-repeat: no-repeat; - background-position: center; - width: 16px; - height: 16px; - display: block; - margin-right: 5px; - float: left; -} diff --git a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/README.md b/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/README.md deleted file mode 100644 index 5bf8edb2f..000000000 --- a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/README.md +++ /dev/null @@ -1,27 +0,0 @@ -CKEditor Insert <pre> Plugin -=============================== - -This plugin makes it easier to insert a <pre> tag in CKEditor. - -Installation ------------- - -1. Clone/copy this repository contents in a new "plugins/insertpre" folder in your CKEditor installation. -2. Enable the "insertpre" plugin in the CKEditor configuration file (config.js): - - config.extraPlugins = 'insertpre'; - -That's all. "InsertPre" button will appear on the editor toolbar and will be ready to use. - -3. Optionally, you may specify which class should be added to the <pre> element: - - CKEDITOR.config.insertpre_class = 'prettyprint'; - - As well as specify how the <pre> tag should be rendered inside CKEditor: - - CKEDITOR.config.insertpre_style = 'background-color:#F8F8F8;border:1px solid #DDD;padding:10px;'; - -License -------- - -Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). diff --git a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/icons/insertpre-color.png b/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/icons/insertpre-color.png deleted file mode 100644 index 0c76bd129..000000000 Binary files a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/icons/insertpre-color.png and /dev/null differ diff --git a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/icons/insertpre.png b/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/icons/insertpre.png deleted file mode 100644 index 756a4906f..000000000 Binary files a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/icons/insertpre.png and /dev/null differ diff --git a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/lang/en.js b/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/lang/en.js deleted file mode 100644 index 661f139c4..000000000 --- a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/lang/en.js +++ /dev/null @@ -1,6 +0,0 @@ -CKEDITOR.plugins.setLang( 'insertpre', 'en', { - title : 'Insert code snippet', - code : 'Code', - edit : 'Edit code', - notEmpty : 'The code field cannot be empty.' -}); diff --git a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/lang/pl.js b/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/lang/pl.js deleted file mode 100644 index f8ec4eda2..000000000 --- a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/lang/pl.js +++ /dev/null @@ -1,6 +0,0 @@ -CKEDITOR.plugins.setLang( 'insertpre', 'pl', { - title : 'Wstaw kod', - code : 'Kod', - edit : 'Edytuj', - notEmpty: 'Pole z kodem nie może być puste.' -}); \ No newline at end of file diff --git a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/plugin.js b/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/plugin.js deleted file mode 100644 index b4a1d835f..000000000 --- a/openslides/core/static/ckeditor/ckeditor/plugins/insertpre/plugin.js +++ /dev/null @@ -1,131 +0,0 @@ -/* - Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. - For licensing, see LICENSE.html or http://ckeditor.com/license - */ - -CKEDITOR.plugins.add( 'insertpre', - { - requires: 'dialog', - lang : 'en,pl', // %REMOVE_LINE_CORE% - icons: 'insertpre', // %REMOVE_LINE_CORE% - onLoad : function() - { - if ( CKEDITOR.config.insertpre_class ) - { - CKEDITOR.addCss( - 'pre.' + CKEDITOR.config.insertpre_class + ' {' + - CKEDITOR.config.insertpre_style + - '}' - ); - } - }, - init : function( editor ) - { - // allowed and required content is the same for this plugin - var required = CKEDITOR.config.insertpre_class ? ( 'pre( ' + CKEDITOR.config.insertpre_class + ' )' ) : 'pre'; - editor.addCommand( 'insertpre', new CKEDITOR.dialogCommand( 'insertpre', { - allowedContent : required, - requiredContent : required - } ) ); - editor.ui.addButton && editor.ui.addButton( 'InsertPre', - { - label : editor.lang.insertpre.title, - icon : this.path + 'icons/insertpre.png', - command : 'insertpre', - toolbar: 'insert,99' - } ); - - if ( editor.contextMenu ) - { - editor.addMenuGroup( 'code' ); - editor.addMenuItem( 'insertpre', - { - label : editor.lang.insertpre.edit, - icon : this.path + 'icons/insertpre.png', - command : 'insertpre', - group : 'code' - }); - editor.contextMenu.addListener( function( element ) - { - if ( element ) - element = element.getAscendant( 'pre', true ); - if ( element && !element.isReadOnly() && element.hasClass( editor.config.insertpre_class ) ) - return { insertpre : CKEDITOR.TRISTATE_OFF }; - return null; - }); - } - - CKEDITOR.dialog.add( 'insertpre', function( editor ) - { - return { - title : editor.lang.insertpre.title, - minWidth : 540, - minHeight : 380, - contents : [ - { - id : 'general', - label : editor.lang.insertpre.code, - elements : [ - { - type : 'textarea', - id : 'contents', - label : editor.lang.insertpre.code, - cols: 140, - rows: 22, - validate : CKEDITOR.dialog.validate.notEmpty( editor.lang.insertpre.notEmpty ), - required : true, - setup : function( element ) - { - var html = element.getHtml(); - if ( html ) - { - var div = document.createElement( 'div' ); - div.innerHTML = html; - this.setValue( div.firstChild.nodeValue ); - } - }, - commit : function( element ) - { - element.setHtml( CKEDITOR.tools.htmlEncode( this.getValue() ) ); - } - } - ] - } - ], - onShow : function() - { - var sel = editor.getSelection(), - element = sel.getStartElement(); - if ( element ) - element = element.getAscendant( 'pre', true ); - - if ( !element || element.getName() != 'pre' || !element.hasClass( editor.config.insertpre_class ) ) - { - element = editor.document.createElement( 'pre' ); - this.insertMode = true; - } - else - this.insertMode = false; - - this.pre = element; - this.setupContent( this.pre ); - }, - onOk : function() - { - if ( editor.config.insertpre_class ) - this.pre.setAttribute( 'class', editor.config.insertpre_class ); - - if ( this.insertMode ) - editor.insertElement( this.pre ); - - this.commitContent( this.pre ); - } - }; - } ); - } - } ); - -if (typeof(CKEDITOR.config.insertpre_style) == 'undefined') - CKEDITOR.config.insertpre_style = 'background-color:#F8F8F8;border:1px solid #DDD;padding:10px;'; -if (typeof(CKEDITOR.config.insertpre_class) == 'undefined') - CKEDITOR.config.insertpre_class = 'prettyprint'; \ No newline at end of file diff --git a/openslides/core/static/css/base.css b/openslides/core/static/css/base.css deleted file mode 100644 index ce7c324b3..000000000 --- a/openslides/core/static/css/base.css +++ /dev/null @@ -1,376 +0,0 @@ -/* - * OpenSlides default template styles of the web interface - */ - -body { - background-color: #FBFBFB; -} - -/* Header */ -#header { - background-color: #333333; - background-image: -moz-linear-gradient(top, #444444, #222222); - background-image: -ms-linear-gradient(top, #444444, #222222); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222)); - background-image: -webkit-linear-gradient(top, #444444, #222222); - background-image: -o-linear-gradient(top, #444444, #222222); - background-image: linear-gradient(top, #444444, #222222); - box-shadow: 0 0 7px rgba(0,0,0,0.6); - border-radius: 0; - height: 35px; - margin-bottom: 20px; - padding: 7px 20px 0; - position: relative; -} -#header .logo img { - height: 30px; - padding-left: 3px; -} -#header .title { - font-size: 16px; - color: #999999; - position: absolute; - margin: 8px 0 0 50px; -} -#searchform { - margin-top: 0px; -} - -footer { - margin-bottom: 20px; -} - -/* Headings and Links */ -h1 { - border-bottom: 1px solid #EEEEEE; - margin: 0px 0 30px; - padding-bottom: 9px; -} -a:hover { - text-decoration: none; -} - -/* Login page */ -#login-page.container { - width: 320px; - margin-top: 20px; -} -#login-page h2 { - margin-left: 30px; - margin-bottom: 20px; -} -#login-page h2 img { - width: 250px; -} -#login-page .well { - background-color: white; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px 6px 6px 6px; - box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); - margin-top: 20px; - padding-bottom: 20px; - line-height: 45px; -} - -/* Log */ -#log { - padding-left: 14px; -} - -/** Utils **/ -tr.offline td, li.offline { - background-color: #EAEAEA !important; -} -tr.activeline td, li.activeline { - background-color: #bed4de !important; -} -.nopadding { - padding: 0; -} -.alert form { - margin-bottom: 0; -} -tr.total td { - border-top: 1px solid #333333; -} -.nobr { - white-space: nowrap; -} -.right { - float: right; -} -.indentation { - margin-left: 12px; -} -.mini_width { - width: 1px; -} -/* show optional column */ -.optional { - display: auto; -} -.user_details fieldset { - margin-bottom: 10px; -} -.user_details legend { - margin-bottom: 5px; -} -.user_details label { - font-weight: bold; - margin: 10px 0 0 0; -} -.user_details label:after { - content: ":"; -} - -/** Colors **/ -.grey { - color: grey; -} - -/** Forms **/ -input, textarea { - width: 320px; -} -.small-form input { - width: 55px; -} -.normal-form input { - width: 320px; -} -textarea { - height: 100px; -} -.help-inline { - font-size: 11px; -} -.errorlist{ - margin: 0; -} -.errorlist li { - list-style: none outside none; -} -form .required label:after { - content: " *"; -} -legend + .control-group { - margin-top: 0px !important; -} -#id_permissions { - height: 310px; - width: auto; -} -#id_users { - height: 110px; - width: auto; -} -#dataTable_filter input { - width: auto; -} -#dataTable { - clear: none; -} -#dataTable_wrapper .row-fluid:after { - clear: none; -} -.searchresults li { - margin-bottom: 15px; -} -.searchresults li .app { - color: #999999; -} -.highlighted { - font-weight: bold; -} - -/* ckeditor plugin insertpre: textarea style */ -table.cke_dialog_contents textarea { - font-family: monospace !important; -} - - -/** Left sidebar navigation **/ -.leftmenu ul { - margin: 0; - padding: 0; - list-style: none; -} -.leftmenu ul ul { - display: none; - margin-left: 35px; - margin-top: -1px; - box-shadow: 0 1px 2px rgba(0,0,0,0.1); -} -.leftmenu ul li { - display: block; - width: 100%; - line-height: 30px; -} -.leftmenu ul li a { - border-style: none solid solid; - border-width: 0 1px 1px; - border-color: #dddddd; - color: #666666; - display: block; - font-weight: bold; - background-color: #ffffff; - padding: 0; -} -.leftmenu ul li:first-child a { - border-top: 1px solid #DDDDDD; -} -.leftmenu ul li a .glyphicon { - display: inline-block; - background: #f9f9f9; - padding: 8px 10px 6px; - margin: 0 5px 0 0; - border-right: 1px solid #dddddd; -} -.leftmenu ul li a, .leftmenu ul li a .glyphicon { - -webkit-transition: background 0.2s ease-in-out; - -moz-transition: background 0.2s ease-in-out; - -ms-transition: background 0.2s ease-in-out; - -o-transition: background 0.2s ease-in-out; - transition: background 0.2s ease-in-out; -} -.leftmenu ul li a:hover { - background-color: #f5f5f5; - color: #000000; -} -.leftmenu ul li a:hover .glyphicon { - background-color: #efefef; -} -.leftmenu ul li.active a { - background-color: #333333; - color: #ffffff; -} -.leftmenu ul li.active a .glyphicon { - background-color: #333333; - border-right: 1px solid #444444; -} -.leftmenu ul li.hider a { - margin-top: 5px; - height: 20px; -} -.leftmenu.lefticon > ul { - width: 37px !important; -} -.leftmenu.lefticon ul ul { - position: absolute; - z-index: 20; - margin-top: -34px; -} -.leftmenu.lefticon > ul > li > a > span.text { - display: none; -} -.leftmenu.lefticon ul ul > li > a { - min-width: 200px !important; -} -.leftmenu.lefticon span.text { - padding-right: 15px; -} - -/** Icons **/ -/* TODO: Move some of them to the respective apps. */ -.icon-assignment { - background: url("../img/glyphicons_041_charts.png") no-repeat !important; - width: 25px; - margin-left: 10px !important; -} -.leftmenu ul li.active a .glyphicon.icon-assignment { - background-image: url("../img/glyphicons_041_charts_white.png") !important; -} -.status_link .icon-on, .icon-checked-new { - background-image: url("../img/glyphicons_152_check.png"); - background-position: 0; -} -.icon-checked-new_white { - background-image: url("../img/glyphicons_152_check_white.png"); - background-position: 0; -} -.status_link .icon-off, .icon-unchecked-new { - background-image: url("../img/glyphicons_153_unchecked.png"); - background-position: 0; -} -.icon-summary { - background-image: url("../img/glyphicons_154_more_windows.png"); - background-position: 0; -} -.icon-summary.icon-white { - background-image: url("../img/glyphicons_154_more_windows_white.png"); - background-position: 0; -} -.icon-login { - background-image: url("../img/glyphicons_044_keys.png"); - background-position: 0; -} -.icon-group { - background-image: url("../img/glyphicons_043_group.png"); - background-position: 0; -} -.icon-import { - background-image: url("../img/glyphicons_358_file_import.png"); - background-position: 0; -} -.icon-delete { - background-image: url("../img/glyphicons_256_delete.png"); - background-position: 0; -} -.icon-add-user { - background-image: url("../img/glyphicons_006_user_add.png"); - background-position: 0; -} -.icon-clock { - background-image: url("../img/glyphicons_054_clock.png"); - background-position: 0; -} -.icon-speaker { - background-image: url("../img/glyphicons_300_microphone.png"); - background-position: 0; -} - -/** Responsive **/ -@media (max-width: 767px) { - body { - padding: 0; - } - .row-fluid .leftmenu { - float: left; - width: auto; - } - #content { - margin: 0 5px 0 45px; - width: auto; - } - /* hide optional column */ - .optional, #searchform #id_q { - display: none; - } - #searchform button { - border-radius: 4px; - } -} - -@media (max-width: 480px) { - body { - padding: 0; - } - .row-fluid .leftmenu { - float: left; - width: auto; - } - #header { - padding: 7px 5px 0; - } - #content { - margin: 0 5px 0 45px; - width: auto; - } - /* hide optional column */ - .optional, .optional-small{ - display: none; - } - #menu-overview .manage, .agenda_list .manage { - width: 50px !important; - } -} diff --git a/openslides/core/static/css/bootstrap-responsive.min.css b/openslides/core/static/css/bootstrap-responsive.min.css deleted file mode 100644 index d1b7f4b0b..000000000 --- a/openslides/core/static/css/bootstrap-responsive.min.css +++ /dev/null @@ -1,9 +0,0 @@ -/*! - * Bootstrap Responsive v2.3.1 - * - * Copyright 2012 Twitter, Inc - * Licensed under the Apache License v2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Designed and built with all the love in the world @twitter by @mdo and @fat. - */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden}.visible-phone{display:none!important}.visible-tablet{display:none!important}.hidden-desktop{display:none!important}.visible-desktop{display:inherit!important}@media(min-width:768px) and (max-width:979px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-tablet{display:inherit!important}.hidden-tablet{display:none!important}}@media(max-width:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:inherit!important}.hidden-print{display:none!important}}@media(min-width:1200px){.row{margin-left:-30px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:30px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:1170px}.span12{width:1170px}.span11{width:1070px}.span10{width:970px}.span9{width:870px}.span8{width:770px}.span7{width:670px}.span6{width:570px}.span5{width:470px}.span4{width:370px}.span3{width:270px}.span2{width:170px}.span1{width:70px}.offset12{margin-left:1230px}.offset11{margin-left:1130px}.offset10{margin-left:1030px}.offset9{margin-left:930px}.offset8{margin-left:830px}.offset7{margin-left:730px}.offset6{margin-left:630px}.offset5{margin-left:530px}.offset4{margin-left:430px}.offset3{margin-left:330px}.offset2{margin-left:230px}.offset1{margin-left:130px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.564102564102564%;*margin-left:2.5109110747408616%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.564102564102564%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.45299145299145%;*width:91.39979996362975%}.row-fluid .span10{width:82.90598290598291%;*width:82.8527914166212%}.row-fluid .span9{width:74.35897435897436%;*width:74.30578286961266%}.row-fluid .span8{width:65.81196581196582%;*width:65.75877432260411%}.row-fluid .span7{width:57.26495726495726%;*width:57.21176577559556%}.row-fluid .span6{width:48.717948717948715%;*width:48.664757228587014%}.row-fluid .span5{width:40.17094017094017%;*width:40.11774868157847%}.row-fluid .span4{width:31.623931623931625%;*width:31.570740134569924%}.row-fluid .span3{width:23.076923076923077%;*width:23.023731587561375%}.row-fluid .span2{width:14.52991452991453%;*width:14.476723040552828%}.row-fluid .span1{width:5.982905982905983%;*width:5.929714493544281%}.row-fluid .offset12{margin-left:105.12820512820512%;*margin-left:105.02182214948171%}.row-fluid .offset12:first-child{margin-left:102.56410256410257%;*margin-left:102.45771958537915%}.row-fluid .offset11{margin-left:96.58119658119658%;*margin-left:96.47481360247316%}.row-fluid .offset11:first-child{margin-left:94.01709401709402%;*margin-left:93.91071103837061%}.row-fluid .offset10{margin-left:88.03418803418803%;*margin-left:87.92780505546462%}.row-fluid .offset10:first-child{margin-left:85.47008547008548%;*margin-left:85.36370249136206%}.row-fluid .offset9{margin-left:79.48717948717949%;*margin-left:79.38079650845607%}.row-fluid .offset9:first-child{margin-left:76.92307692307693%;*margin-left:76.81669394435352%}.row-fluid .offset8{margin-left:70.94017094017094%;*margin-left:70.83378796144753%}.row-fluid .offset8:first-child{margin-left:68.37606837606839%;*margin-left:68.26968539734497%}.row-fluid .offset7{margin-left:62.393162393162385%;*margin-left:62.28677941443899%}.row-fluid .offset7:first-child{margin-left:59.82905982905982%;*margin-left:59.72267685033642%}.row-fluid .offset6{margin-left:53.84615384615384%;*margin-left:53.739770867430444%}.row-fluid .offset6:first-child{margin-left:51.28205128205128%;*margin-left:51.175668303327875%}.row-fluid .offset5{margin-left:45.299145299145295%;*margin-left:45.1927623204219%}.row-fluid .offset5:first-child{margin-left:42.73504273504273%;*margin-left:42.62865975631933%}.row-fluid .offset4{margin-left:36.75213675213675%;*margin-left:36.645753773413354%}.row-fluid .offset4:first-child{margin-left:34.18803418803419%;*margin-left:34.081651209310785%}.row-fluid .offset3{margin-left:28.205128205128204%;*margin-left:28.0987452264048%}.row-fluid .offset3:first-child{margin-left:25.641025641025642%;*margin-left:25.53464266230224%}.row-fluid .offset2{margin-left:19.65811965811966%;*margin-left:19.551736679396257%}.row-fluid .offset2:first-child{margin-left:17.094017094017094%;*margin-left:16.98763411529369%}.row-fluid .offset1{margin-left:11.11111111111111%;*margin-left:11.004728132387708%}.row-fluid .offset1:first-child{margin-left:8.547008547008547%;*margin-left:8.440625568285142%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:30px}input.span12,textarea.span12,.uneditable-input.span12{width:1156px}input.span11,textarea.span11,.uneditable-input.span11{width:1056px}input.span10,textarea.span10,.uneditable-input.span10{width:956px}input.span9,textarea.span9,.uneditable-input.span9{width:856px}input.span8,textarea.span8,.uneditable-input.span8{width:756px}input.span7,textarea.span7,.uneditable-input.span7{width:656px}input.span6,textarea.span6,.uneditable-input.span6{width:556px}input.span5,textarea.span5,.uneditable-input.span5{width:456px}input.span4,textarea.span4,.uneditable-input.span4{width:356px}input.span3,textarea.span3,.uneditable-input.span3{width:256px}input.span2,textarea.span2,.uneditable-input.span2{width:156px}input.span1,textarea.span1,.uneditable-input.span1{width:56px}.thumbnails{margin-left:-30px}.thumbnails>li{margin-left:30px}.row-fluid .thumbnails{margin-left:0}}@media(min-width:768px) and (max-width:979px){.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:724px}.span12{width:724px}.span11{width:662px}.span10{width:600px}.span9{width:538px}.span8{width:476px}.span7{width:414px}.span6{width:352px}.span5{width:290px}.span4{width:228px}.span3{width:166px}.span2{width:104px}.span1{width:42px}.offset12{margin-left:764px}.offset11{margin-left:702px}.offset10{margin-left:640px}.offset9{margin-left:578px}.offset8{margin-left:516px}.offset7{margin-left:454px}.offset6{margin-left:392px}.offset5{margin-left:330px}.offset4{margin-left:268px}.offset3{margin-left:206px}.offset2{margin-left:144px}.offset1{margin-left:82px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.7624309392265194%;*margin-left:2.709239449864817%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.7624309392265194%}.row-fluid .span12{width:100%;*width:99.94680851063829%}.row-fluid .span11{width:91.43646408839778%;*width:91.38327259903608%}.row-fluid .span10{width:82.87292817679558%;*width:82.81973668743387%}.row-fluid .span9{width:74.30939226519337%;*width:74.25620077583166%}.row-fluid .span8{width:65.74585635359117%;*width:65.69266486422946%}.row-fluid .span7{width:57.18232044198895%;*width:57.12912895262725%}.row-fluid .span6{width:48.61878453038674%;*width:48.56559304102504%}.row-fluid .span5{width:40.05524861878453%;*width:40.00205712942283%}.row-fluid .span4{width:31.491712707182323%;*width:31.43852121782062%}.row-fluid .span3{width:22.92817679558011%;*width:22.87498530621841%}.row-fluid .span2{width:14.3646408839779%;*width:14.311449394616199%}.row-fluid .span1{width:5.801104972375691%;*width:5.747913483013988%}.row-fluid .offset12{margin-left:105.52486187845304%;*margin-left:105.41847889972962%}.row-fluid .offset12:first-child{margin-left:102.76243093922652%;*margin-left:102.6560479605031%}.row-fluid .offset11{margin-left:96.96132596685082%;*margin-left:96.8549429881274%}.row-fluid .offset11:first-child{margin-left:94.1988950276243%;*margin-left:94.09251204890089%}.row-fluid .offset10{margin-left:88.39779005524862%;*margin-left:88.2914070765252%}.row-fluid .offset10:first-child{margin-left:85.6353591160221%;*margin-left:85.52897613729868%}.row-fluid .offset9{margin-left:79.8342541436464%;*margin-left:79.72787116492299%}.row-fluid .offset9:first-child{margin-left:77.07182320441989%;*margin-left:76.96544022569647%}.row-fluid .offset8{margin-left:71.2707182320442%;*margin-left:71.16433525332079%}.row-fluid .offset8:first-child{margin-left:68.50828729281768%;*margin-left:68.40190431409427%}.row-fluid .offset7{margin-left:62.70718232044199%;*margin-left:62.600799341718584%}.row-fluid .offset7:first-child{margin-left:59.94475138121547%;*margin-left:59.838368402492065%}.row-fluid .offset6{margin-left:54.14364640883978%;*margin-left:54.037263430116376%}.row-fluid .offset6:first-child{margin-left:51.38121546961326%;*margin-left:51.27483249088986%}.row-fluid .offset5{margin-left:45.58011049723757%;*margin-left:45.47372751851417%}.row-fluid .offset5:first-child{margin-left:42.81767955801105%;*margin-left:42.71129657928765%}.row-fluid .offset4{margin-left:37.01657458563536%;*margin-left:36.91019160691196%}.row-fluid .offset4:first-child{margin-left:34.25414364640884%;*margin-left:34.14776066768544%}.row-fluid .offset3{margin-left:28.45303867403315%;*margin-left:28.346655695309746%}.row-fluid .offset3:first-child{margin-left:25.69060773480663%;*margin-left:25.584224756083227%}.row-fluid .offset2{margin-left:19.88950276243094%;*margin-left:19.783119783707537%}.row-fluid .offset2:first-child{margin-left:17.12707182320442%;*margin-left:17.02068884448102%}.row-fluid .offset1{margin-left:11.32596685082873%;*margin-left:11.219583872105325%}.row-fluid .offset1:first-child{margin-left:8.56353591160221%;*margin-left:8.457152932878806%}input,textarea,.uneditable-input{margin-left:0}.controls-row [class*="span"]+[class*="span"]{margin-left:20px}input.span12,textarea.span12,.uneditable-input.span12{width:710px}input.span11,textarea.span11,.uneditable-input.span11{width:648px}input.span10,textarea.span10,.uneditable-input.span10{width:586px}input.span9,textarea.span9,.uneditable-input.span9{width:524px}input.span8,textarea.span8,.uneditable-input.span8{width:462px}input.span7,textarea.span7,.uneditable-input.span7{width:400px}input.span6,textarea.span6,.uneditable-input.span6{width:338px}input.span5,textarea.span5,.uneditable-input.span5{width:276px}input.span4,textarea.span4,.uneditable-input.span4{width:214px}input.span3,textarea.span3,.uneditable-input.span3{width:152px}input.span2,textarea.span2,.uneditable-input.span2{width:90px}input.span1,textarea.span1,.uneditable-input.span1{width:28px}}@media(max-width:767px){body{padding-right:20px;padding-left:20px}.navbar-fixed-top,.navbar-fixed-bottom,.navbar-static-top{margin-right:-20px;margin-left:-20px}.container-fluid{padding:0}.dl-horizontal dt{float:none;width:auto;clear:none;text-align:left}.dl-horizontal dd{margin-left:0}.container{width:auto}.row-fluid{width:100%}.row,.thumbnails{margin-left:0}.thumbnails>li{float:none;margin-left:0}[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]{display:block;float:none;width:100%;margin-left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.span12,.row-fluid .span12{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="offset"]:first-child{margin-left:0}.input-large,.input-xlarge,.input-xxlarge,input[class*="span"],select[class*="span"],textarea[class*="span"],.uneditable-input{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.input-prepend input,.input-append input,.input-prepend input[class*="span"],.input-append input[class*="span"]{display:inline-block;width:auto}.controls-row [class*="span"]+[class*="span"]{margin-left:0}.modal{position:fixed;top:20px;right:20px;left:20px;width:auto;margin:0}.modal.fade{top:-100px}.modal.fade.in{top:20px}}@media(max-width:480px){.nav-collapse{-webkit-transform:translate3d(0,0,0)}.page-header h1 small{display:block;line-height:20px}input[type="checkbox"],input[type="radio"]{border:1px solid #ccc}.form-horizontal .control-label{float:none;width:auto;padding-top:0;text-align:left}.form-horizontal .controls{margin-left:0}.form-horizontal .control-list{padding-top:0}.form-horizontal .form-actions{padding-right:10px;padding-left:10px}.media .pull-left,.media .pull-right{display:block;float:none;margin-bottom:10px}.media-object{margin-right:0;margin-left:0}.modal{top:10px;right:10px;left:10px}.modal-header .close{padding:10px;margin:-10px}.carousel-caption{position:static}}@media(max-width:979px){body{padding-top:0}.navbar-fixed-top,.navbar-fixed-bottom{position:static}.navbar-fixed-top{margin-bottom:20px}.navbar-fixed-bottom{margin-top:20px}.navbar-fixed-top .navbar-inner,.navbar-fixed-bottom .navbar-inner{padding:5px}.navbar .container{width:auto;padding:0}.navbar .brand{padding-right:10px;padding-left:10px;margin:0 0 0 -5px}.nav-collapse{clear:both}.nav-collapse .nav{float:none;margin:0 0 10px}.nav-collapse .nav>li{float:none}.nav-collapse .nav>li>a{margin-bottom:2px}.nav-collapse .nav>.divider-vertical{display:none}.nav-collapse .nav .nav-header{color:#777;text-shadow:none}.nav-collapse .nav>li>a,.nav-collapse .dropdown-menu a{padding:9px 15px;font-weight:bold;color:#777;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.nav-collapse .btn{padding:4px 10px 4px;font-weight:normal;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.nav-collapse .dropdown-menu li+li a{margin-bottom:2px}.nav-collapse .nav>li>a:hover,.nav-collapse .nav>li>a:focus,.nav-collapse .dropdown-menu a:hover,.nav-collapse .dropdown-menu a:focus{background-color:#f2f2f2}.navbar-inverse .nav-collapse .nav>li>a,.navbar-inverse .nav-collapse .dropdown-menu a{color:#999}.navbar-inverse .nav-collapse .nav>li>a:hover,.navbar-inverse .nav-collapse .nav>li>a:focus,.navbar-inverse .nav-collapse .dropdown-menu a:hover,.navbar-inverse .nav-collapse .dropdown-menu a:focus{background-color:#111}.nav-collapse.in .btn-group{padding:0;margin-top:5px}.nav-collapse .dropdown-menu{position:static;top:auto;left:auto;display:none;float:none;max-width:none;padding:0;margin:0 15px;background-color:transparent;border:0;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.nav-collapse .open>.dropdown-menu{display:block}.nav-collapse .dropdown-menu:before,.nav-collapse .dropdown-menu:after{display:none}.nav-collapse .dropdown-menu .divider{display:none}.nav-collapse .nav>li>.dropdown-menu:before,.nav-collapse .nav>li>.dropdown-menu:after{display:none}.nav-collapse .navbar-form,.nav-collapse .navbar-search{float:none;padding:10px 15px;margin:10px 0;border-top:1px solid #f2f2f2;border-bottom:1px solid #f2f2f2;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}.navbar-inverse .nav-collapse .navbar-form,.navbar-inverse .nav-collapse .navbar-search{border-top-color:#111;border-bottom-color:#111}.navbar .nav-collapse .nav.pull-right{float:none;margin-left:0}.nav-collapse,.nav-collapse.collapse{height:0;overflow:hidden}.navbar .btn-navbar{display:block}.navbar-static .navbar-inner{padding-right:10px;padding-left:10px}}@media(min-width:980px){.nav-collapse.collapse{height:auto!important;overflow:visible!important}} diff --git a/openslides/core/static/css/chatbox.css b/openslides/core/static/css/chatbox.css deleted file mode 100644 index e5d90183d..000000000 --- a/openslides/core/static/css/chatbox.css +++ /dev/null @@ -1,64 +0,0 @@ -/** Chatbox **/ -.icon-comments { - background-position: -240px -120px; -} -div#chatbox { - width: 40%; - height: 220px; - min-height: 140px; - min-width: 300px; - position: fixed; - right: 0px; - bottom: 0; - z-index: 99; - margin-bottom: 0; - box-shadow: -3px -3px 10px rgba(0,0,0,0.2); - border-width: 2px; - border-color: darkgrey; - padding: 0; -} -#chatbox-header{ - background-color: #333333; - background-image: -moz-linear-gradient(top, #444444, #222222); - background-image: -ms-linear-gradient(top, #444444, #222222); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222)); - background-image: -webkit-linear-gradient(top, #444444, #222222); - background-image: -o-linear-gradient(top, #444444, #222222); - background-image: linear-gradient(top, #444444, #222222); - border-color: #333333; -} -h1#chatbox-title { - color: #999999; - font-size: 16px; - font-weight: bold; - line-height: 16px; - margin: 0; - padding: 3px 10px 7px 10px; - border-bottom: none; -} -div#chatbox div#chatbox-text { - clear: both; - overflow-y:scroll; - background-color: white; - padding: 0 10px; - font-size: 12px; - height: calc(100% - 65px); -} -#chatbox form { - margin-bottom: 0px; - padding: 5px; -} -#chatbox form input { - width: 90%; -} -#newchatmessage { - border-radius: 8px; - background-color: red; - color: white; - font-size: 0.7em; - position: relative; - right: 0; - top: -6px; - padding: 2px 6px; - display: none; -} diff --git a/openslides/core/static/css/dashboard.css b/openslides/core/static/css/dashboard.css deleted file mode 100644 index 2c7f12d2f..000000000 --- a/openslides/core/static/css/dashboard.css +++ /dev/null @@ -1,173 +0,0 @@ -/* - * OpenSlides dashboard styles - * - */ - -/*** Widgets ***/ -.column { - width: 50%; - float: left; - padding-bottom: 100px; -} -.widget { - margin: 0 10px 10px 0; -} -.widget.affix { - position: fixed; - z-index: 100; - right: 20px; - top: 42px; - max-width: 40%; -} -.widget-header { - min-height: 30px; - background: #E9E9E9; - background:-moz-linear-gradient(top, #FAFAFA 0%, #E9E9E9 100%); /* FF3.6+ */ - background:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#FAFAFA), color-stop(100%,#E9E9E9)); /* Chrome,Safari4+ */ - background:-webkit-linear-gradient(top, #FAFAFA 0%,#E9E9E9 100%); /* Chrome10+,Safari5.1+ */ - background:-o-linear-gradient(top, #FAFAFA 0%,#E9E9E9 100%); /* Opera11.10+ */ - background:-ms-linear-gradient(top, #FAFAFA 0%,#E9E9E9 100%); /* IE10+ */ - background:linear-gradient(top, #FAFAFA 0%,#E9E9E9 100%); /* W3C */ - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9'); - -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9')"; - border: 1px solid #D5D5D5; - border-radius: 5px 5px 0 0; -} -.widget-header:hover { - cursor: pointer; -} -.widget-header button:hover { - cursor: default; -} -.widget-header h3 { - margin: 7px 0 7px 14px; - font-size: 14px; - color: #555; - line-height: 18px; -} -.widget-header [class^="icon-"], .widget-header [class*=" icon-"] { - margin: -2px 5px 0 0px; - color: #555; - vertical-align: middle; -} -.widget-header .collapsebutton, .widget-header .fixbutton{ - margin: -2px 4px 0 0px; -} -.widget-header .fixbutton{ - margin-left: 6px; -} -.widget-header .icon-pushpin { - background-image: url("../img/glyphicons_335_pushpin.png"); - background-position: 0 center; -} -.widget-content { - padding: 0px 15px 0px 13px; - background: #FFF; - border: 1px solid #D5D5D5; - border-radius: 0 0 5px 5px; - -moz-border-radius: 0 0 5px 5px; - -webkit-border-radius: 0 0 5px 5px; -} -.widget-content-inner { - margin-top: 10px; -} -.widget-content li { - padding: 4px 0; -} -.widget-content .overlay_list li { - padding-bottom: 10px; -} -.widget-content ul { - list-style: none inside none; - margin: 0; -} -.widget-content hr { - margin: 5px 0; -} - -.ui-sortable-placeholder { - border: 2px dashed #555555; - visibility: visible !important; - height: 50px !important; -} -.ui-sortable-placeholder * { - visibility: hidden; -} - -.overlay_list .overlayblock { - margin: 0 0 0 31px; -} - -#countdown_time { - width: 40px; -} - -/*** iframe for live view ***/ -#iframe { - width: 1024px; - height: 768px; - -moz-transform-origin: 0 0; - -webkit-transform-origin: 0 0; - -o-transform-origin: 0 0; - transform-origin: 0 0 0; - -moz-transform: scale(0.25); - -webkit-transform: scale(0.25); - -o-transform: scale(0.25); - transform: scale(0.25); - /* IE8+ - must be on one line, unfortunately */ - -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.25, M12=0, M21=0, M22=0.25, SizingMethod='auto expand')"; -} -#iframewrapper { - width: 256px; - height: 192px; - position: relative; - overflow: hidden; - border: 1px solid #D5D5D5; - margin-bottom: 10px; -} -#iframeoverlay { - width: 256px; - height: 192px; - position: absolute; - top: 0px; - left: 0px; - display: block; - z-index: 1; -} - -/* Projector control panel */ -.notNull { - color: red; - font-weight: bold; -} - -/*** misc ***/ -.custom-btn-mini { - width: 20px; -} -.custom-btn-mini i { - -moz-margin-start: 4px !important; - margin-left: -6px; -} - - -/* - * style for countdown shortcuts - * - * TODO: move to projector app or merge projector with core - */ -#countdown_shortcut_storage { - margin-top: 5px; -} - -#countdown_shortcut_storage .countdown_shortcut_time { - margin-right: 2px; -} - -#countdown_shortcut_storage .countdown_shortcut_time span { - padding-right: 5px; -} - -#countdown_shortcut_dummy { - display: none; -} diff --git a/openslides/core/static/css/jquery-ui-timepicker.css b/openslides/core/static/css/jquery-ui-timepicker.css deleted file mode 100644 index 621253cb3..000000000 --- a/openslides/core/static/css/jquery-ui-timepicker.css +++ /dev/null @@ -1,44 +0,0 @@ -/* - * jQuery UI timepicker styles - * - */ - -.ui-timepicker-div .ui-widget-header { - margin-bottom: 8px; -} - -.ui-timepicker-div dl { - text-align: left; -} - -.ui-timepicker-div dl dt { - height: 25px; - margin-bottom: -25px; -} - -.ui-timepicker-div dl dd { - margin: 0 10px 10px 65px; -} - -.ui-timepicker-div td { - font-size: 90%; -} - -.ui-tpicker-grid-label { - background: none; - border: none; - margin: 0; - padding: 0; -} - -.ui-timepicker-rtl{ - direction: rtl; -} - -.ui-timepicker-rtl dl { - text-align: right; -} - -.ui-timepicker-rtl dl dd { - margin: 0 65px 10px 10px; -} diff --git a/openslides/core/static/css/jquery-ui/images/animated-overlay.gif b/openslides/core/static/css/jquery-ui/images/animated-overlay.gif deleted file mode 100755 index d441f75eb..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/animated-overlay.gif and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png b/openslides/core/static/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png deleted file mode 100755 index f5f09827f..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png b/openslides/core/static/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png deleted file mode 100755 index 9e7a51252..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png b/openslides/core/static/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png deleted file mode 100755 index 42f163144..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png b/openslides/core/static/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png deleted file mode 100755 index 3d583e144..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png b/openslides/core/static/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png deleted file mode 100755 index 84c34ed61..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png b/openslides/core/static/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png deleted file mode 100755 index 56d103089..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png b/openslides/core/static/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png deleted file mode 100755 index c5ae1338e..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/openslides/core/static/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png deleted file mode 100755 index e504a3ca1..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-icons_222222_256x240.png b/openslides/core/static/css/jquery-ui/images/ui-icons_222222_256x240.png deleted file mode 100755 index 0de629325..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-icons_222222_256x240.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-icons_2e83ff_256x240.png b/openslides/core/static/css/jquery-ui/images/ui-icons_2e83ff_256x240.png deleted file mode 100755 index 513a241d4..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-icons_2e83ff_256x240.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-icons_454545_256x240.png b/openslides/core/static/css/jquery-ui/images/ui-icons_454545_256x240.png deleted file mode 100755 index 95032e442..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-icons_454545_256x240.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-icons_888888_256x240.png b/openslides/core/static/css/jquery-ui/images/ui-icons_888888_256x240.png deleted file mode 100755 index 8449bebc2..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-icons_888888_256x240.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png b/openslides/core/static/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png deleted file mode 100755 index e28c9249b..000000000 Binary files a/openslides/core/static/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png and /dev/null differ diff --git a/openslides/core/static/css/jquery-ui/jquery-ui.custom.min.css b/openslides/core/static/css/jquery-ui/jquery-ui.custom.min.css deleted file mode 100755 index 88d5b1d8c..000000000 --- a/openslides/core/static/css/jquery-ui/jquery-ui.custom.min.css +++ /dev/null @@ -1,7 +0,0 @@ -/*! jQuery UI - v1.10.4 - 2014-03-12 -* http://jqueryui.com -* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.datepicker.css, jquery.ui.slider.css, jquery.ui.theme.css -* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px -* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ - -.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:bold}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png)}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px} \ No newline at end of file diff --git a/openslides/core/static/css/jquery.bsmselect.css b/openslides/core/static/css/jquery.bsmselect.css deleted file mode 100755 index 3b37c52b8..000000000 --- a/openslides/core/static/css/jquery.bsmselect.css +++ /dev/null @@ -1,123 +0,0 @@ -/* - * jQuery bsmSelect styles - * - */ - -.bsmContainer { - /* container that surrounds entire bsmSelect widget */ -} - -.bsmSelect { - /* the newly created regular 'select' */ - display: inline; -} - -.bsmOptionDisabled { - /* disabled options in new select */ - color: #999; -} - -.bsmHighlight { - /* the highlight span */ - float: right; - padding: 0; - margin: 0 0 0 1em; -} - -.bsmList { - /* html list that contains selected items */ - margin: 0.25em 0 1em 0; - position: relative; - display: block; - padding-left: 0; - list-style: none; -} - -.bsmListItem { - /* li item from the html list above */ - position: relative; - margin-left: 0; - padding-left: 0; - list-style: none; - background: #ddd; - border: 1px solid #bbb; - width: auto; - margin: 0 0 -1px 0; - line-height: 1em; -} - -.bsmListItem:hover { - background-color: #e5e5e5; -} - -.bsmListItemLabel { - /* this is a span that surrounds the text in the item, except for the remove link */ - padding: 5px; - display: block; -} - -.bsmListSortable .bsmListItemLabel { - cursor: move; -} - -.bsmListItemRemove { - /* the remove link in each list item */ - position: absolute; - right: 0; - top: 0; - padding: 5px; -} - -.bsmScrollWorkaround { - /* Fix a bug when the 'html' element has an overflow set to either 'scroll' or 'auto' on FF. */ - padding-bottom: 1px; - overflow: auto; -} - - -/* - * Custom styles - */ -.bsmList-custom { - /* html list that contains selected items */ - margin: 0; - display: block; - padding-left: 0; - list-style: none; -} - -.bsmListItem-custom { - /* li item from the html list above */ - margin: 0 5px 5px 0; - padding: 4px; - list-style: none; - background: #ddd; - border: 1px solid #bbb; - line-height: 1em; - float: left; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; -} - -.bsmListItem-custom:hover { - background-color: #e5e5e5; - box-shadow: 0 0 3px #aaa; - -webkit-box-shadow: 0 0 3px #aaa; - -moz-box-shadow: 0 0 3px #aaa; -} - -.bsmListItemLabel-custom { - padding-right: 5px; -} - -.bsmListItemRemove-custom { - text-decoration: none; -} -.bsmContainer:after { - content: ""; - display: block; - height: 0; - clear: both; - visibility: hidden; -} diff --git a/openslides/core/static/img/draggable.png b/openslides/core/static/img/draggable.png deleted file mode 100644 index 93d20d60d..000000000 Binary files a/openslides/core/static/img/draggable.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_006_user_add.png b/openslides/core/static/img/glyphicons_006_user_add.png deleted file mode 100644 index 098d70d3d..000000000 Binary files a/openslides/core/static/img/glyphicons_006_user_add.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_041_charts.png b/openslides/core/static/img/glyphicons_041_charts.png deleted file mode 100644 index 556b7cce5..000000000 Binary files a/openslides/core/static/img/glyphicons_041_charts.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_041_charts_white.png b/openslides/core/static/img/glyphicons_041_charts_white.png deleted file mode 100644 index 83cd93b8c..000000000 Binary files a/openslides/core/static/img/glyphicons_041_charts_white.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_043_group.png b/openslides/core/static/img/glyphicons_043_group.png deleted file mode 100644 index d0cf9eeed..000000000 Binary files a/openslides/core/static/img/glyphicons_043_group.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_043_group_white.png b/openslides/core/static/img/glyphicons_043_group_white.png deleted file mode 100644 index 94908b008..000000000 Binary files a/openslides/core/static/img/glyphicons_043_group_white.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_044_keys.png b/openslides/core/static/img/glyphicons_044_keys.png deleted file mode 100644 index 600345713..000000000 Binary files a/openslides/core/static/img/glyphicons_044_keys.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_045_calendar.png b/openslides/core/static/img/glyphicons_045_calendar.png deleted file mode 100644 index 937daeed0..000000000 Binary files a/openslides/core/static/img/glyphicons_045_calendar.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_045_calendar_white.png b/openslides/core/static/img/glyphicons_045_calendar_white.png deleted file mode 100644 index bbc8ff595..000000000 Binary files a/openslides/core/static/img/glyphicons_045_calendar_white.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_054_clock.png b/openslides/core/static/img/glyphicons_054_clock.png deleted file mode 100644 index 984bcc2cb..000000000 Binary files a/openslides/core/static/img/glyphicons_054_clock.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_062_paperclip.png b/openslides/core/static/img/glyphicons_062_paperclip.png deleted file mode 100644 index fed88de96..000000000 Binary files a/openslides/core/static/img/glyphicons_062_paperclip.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_062_paperclip_white.png b/openslides/core/static/img/glyphicons_062_paperclip_white.png deleted file mode 100644 index cceb92174..000000000 Binary files a/openslides/core/static/img/glyphicons_062_paperclip_white.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_152_check.png b/openslides/core/static/img/glyphicons_152_check.png deleted file mode 100644 index bbb6dcae5..000000000 Binary files a/openslides/core/static/img/glyphicons_152_check.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_152_check_white.png b/openslides/core/static/img/glyphicons_152_check_white.png deleted file mode 100644 index 0c4f5fd1a..000000000 Binary files a/openslides/core/static/img/glyphicons_152_check_white.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_153_unchecked.png b/openslides/core/static/img/glyphicons_153_unchecked.png deleted file mode 100644 index 23bced66a..000000000 Binary files a/openslides/core/static/img/glyphicons_153_unchecked.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_154_more_windows.png b/openslides/core/static/img/glyphicons_154_more_windows.png deleted file mode 100644 index 5f533aa7b..000000000 Binary files a/openslides/core/static/img/glyphicons_154_more_windows.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_154_more_windows_white.png b/openslides/core/static/img/glyphicons_154_more_windows_white.png deleted file mode 100644 index ed393b222..000000000 Binary files a/openslides/core/static/img/glyphicons_154_more_windows_white.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_256_delete.png b/openslides/core/static/img/glyphicons_256_delete.png deleted file mode 100644 index 81282f990..000000000 Binary files a/openslides/core/static/img/glyphicons_256_delete.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_335_pushpin.png b/openslides/core/static/img/glyphicons_335_pushpin.png deleted file mode 100644 index a4ba1bb36..000000000 Binary files a/openslides/core/static/img/glyphicons_335_pushpin.png and /dev/null differ diff --git a/openslides/core/static/img/glyphicons_358_file_import.png b/openslides/core/static/img/glyphicons_358_file_import.png deleted file mode 100644 index 36dd2c322..000000000 Binary files a/openslides/core/static/img/glyphicons_358_file_import.png and /dev/null differ diff --git a/openslides/core/static/img/tree-bottom.png b/openslides/core/static/img/tree-bottom.png deleted file mode 100644 index 256ae1f43..000000000 Binary files a/openslides/core/static/img/tree-bottom.png and /dev/null differ diff --git a/openslides/core/static/img/tree.png b/openslides/core/static/img/tree.png deleted file mode 100644 index fccec6bdb..000000000 Binary files a/openslides/core/static/img/tree.png and /dev/null differ diff --git a/openslides/core/static/js/chatbox.js b/openslides/core/static/js/chatbox.js deleted file mode 100644 index dc2ba7d1b..000000000 --- a/openslides/core/static/js/chatbox.js +++ /dev/null @@ -1,111 +0,0 @@ -// Functions for OpenSlides chatbox -$(function() { - // Chatbox is resizable on two sides (north and west) and - // one corner (nortwest) - $("div#chatbox").resizable({ handles: 'n, w, nw' }); -}); - -$("#chatboxbutton").click(function(){ - if ($(this).hasClass('active')) { - /* close chatbox */ - $("#chatbox").addClass('hidden'); - // Save new chatbox state in cookie - save_cookie(false); - } else { - /* open chatbox */ - $("#chatbox").removeClass('hidden'); - // Scroll chat content to end - $("#chatbox-text").scrollTop(10000); - // Set focus to input field - $("#chatbox-form-input").val('').focus(); - // Save new chatbox state in cookie - save_cookie(true) - $.cookie('openslides-chatbox-new-message', 0, { path: "/"}); - // Hide new message number - $("#newchatmessage").fadeOut(); - } -}); - -$("#close-chatbox").click(function(){ - $("#chatbox").addClass('hidden'); - $("#chatboxbutton").removeClass('active'); - // Save new chatbox state in cookie - save_cookie(false); -}); - -$("#chatbox").resize(function() { - // If resizing the chatbox window the chatbox text scrolls to latest message. - // Sets a minimum for width and height. - $("#chatbox-text").scrollTop(10000); - $("#chatbox").resizable( "option", "minWidth", 300 ); - $("#chatbox").resizable( "option", "minHeight", 140 ); - save_cookie(true); -}); - - -// Save chatbox state in cookie. -// Parameter 'active': chatbox window is open (true) or closed (false). -function save_cookie(active) { - var status = { - 'active': active, - 'width': $("#chatbox").width(), - 'height': $("#chatbox").height() - }; - $.cookie('openslides-chatbox', JSON.stringify(status), { path: "/"}); -} - -$(document).ready(function(){ - // Load chatbox state from cookie. - var cookie = $.cookie('openslides-chatbox'); - if (cookie) { - var status = $.parseJSON(cookie); - if (status['active']) { - $("#chatbox").removeClass('hidden'); - $("#chatboxbutton").addClass('active'); - // Scroll chat content to end - $("#chatbox-text").scrollTop(10000); - // Set focus to input field - $('#chatbox-form-input').val('').focus(); - } - if (status['width']) { - $("#chatbox").width(status['width']); - } - if (status['height']) { - $("#chatbox").height(status['height']); - } - } - - // Load number of new messages from cookie - if ($.cookie('openslides-chatbox-new-message') > 0) { - $("#newchatmessage").html($.cookie('openslides-chatbox-new-message')); - $("#newchatmessage").show(0); - } - - // Print chat messages into chatbox - function print_message_into_box(message) { - var chatcontent = $('#chatbox-text'); - chatcontent.html(chatcontent.html() + '
' + message); - chatcontent.scrollTop(chatcontent.scrollTop() + 10000); - // if chatbox is hidden show number of new messages and save in cookie - if ($("#chatbox").hasClass('hidden')){ - new_messages = parseInt($.cookie('openslides-chatbox-new-message')) + 1; - if (new_messages == 1) - $("#newchatmessage").fadeIn(); - $("#newchatmessage").html(new_messages); - $.cookie('openslides-chatbox-new-message', new_messages, { path: "/"}); - } - } - - var connection = new SockJS('http://' + window.location.host + '/core/chatbox'); - - connection.onmessage = function(event) { - print_message_into_box(event.data); - }; - - $("#chatbox-form").submit(function(){ - var message = $('#chatbox-form-input').val(); - connection.send(message); - $('#chatbox-form-input').val('').focus(); - return false; - }); -}); diff --git a/openslides/core/static/js/config_tags.js b/openslides/core/static/js/config_tags.js deleted file mode 100644 index 6f017abe6..000000000 --- a/openslides/core/static/js/config_tags.js +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Functions to alter the tags via ajax-commands. - */ - -$(function() { - // The HTML-input field, in which the tag-name can be altered - var insert_element = $('#tag-edit'); - - // Boolean value to block second insert-ajax-requests before the pk was returned - var insert_is_blocked = false; - - // Clears the HTML-input field to add new tags - $('#tag-save').click(function(event) { - event.preventDefault(); - insert_element.val(''); - // This is the important line, where the name-attribute of the html-element is set to new - insert_element.attr('name', 'new'); - insert_is_blocked = false; - }); - - // The same happens, if the enter key (keycode==13) was pressed inside the input element - insert_element.keypress(function(event) { - if ( event.which == 13 ) { - event.preventDefault(); - $('#tag-save').trigger('click'); - } - }); - - // Change the tag which will be updated - $('.tag-edit').click(function(event) { - event.preventDefault(); - var edit_element = $(this); - insert_element.val(edit_element.parents('.tag-row').children('.tag-name').html()); - // This is the important line, where the name-attribute of the html-elemtnt is set to edit - insert_element.attr('name', 'edit-' + edit_element.parents('.tag-row').attr('id')); - insert_is_blocked = false; - }); - - // Code when the delete button of a tag is clicked. Send the ajax-request and - // remove the tag-element from the DOM, when the request was a success. - $('.tag-del').click(function(event) { - event.preventDefault(); - var delete_element = $(this); - $.ajax({ - method: 'POST', - data: { - name: 'delete-' + delete_element.parents('.tag-row').attr('id')}, - dataType: 'json', - success: function(data) { - if (data.action == 'deleted') { - delete_element.parents('.tag-row').remove(); - } - } - }); - }); - - // Send the changed data, when new input is in the insert element. - // Use the 'input'-event instead of the 'change'-event, so new data is send - // event when the element does not loose the focus. - insert_element.on('input', function(event) { - // Only send data, if insert_is_blocked is false - if (!insert_is_blocked) { - // block the insert when a new tag is send to the server - if (insert_element.attr('name') == 'new') { - insert_is_blocked = true; - } - - $.ajax({ - // Sends the data to the current page - method: 'POST', - data: { - name: insert_element.attr('name'), - value: insert_element.val()}, - dataType: 'json', - success: function(data) { - if (data.action == 'created') { - // If a new tag was created, use the hidden dummy-tag as template - // to create a new tag-line - // Known bug: the element is added at the end of the list and - // not in alphabetic order. This will be fixed with angular - var new_element = $('#dummy-tag').clone(withDataAndEvents=true); - new_element.attr('id', 'tag-' + data.pk); - new_element.children('.tag-name').html(insert_element.val()); - new_element.appendTo('#tag-table'); - new_element.slideDown(); - - // Set the insert-element to edit the new created tag and unblock the - // ajax-method - insert_element.attr('name', 'edit-tag-' + data.pk); - insert_is_blocked = false; - - } else if (data.action == 'updated') { - // If a existing tag was altered, change it. - $('#tag-' + data.pk).children('.tag-name').html(insert_element.val()); - } - - if (data.error) { - insert_element.parent().addClass('error'); - if (insert_element.attr('name') == 'new') { - // Remove the block, even if an error happend, so we can send a - // new name for the tag - insert_is_blocked = false; - } - } else { - insert_element.parent().removeClass('error'); - }; - }, - }); - } - }); -}); diff --git a/openslides/core/static/js/dashboard.js b/openslides/core/static/js/dashboard.js deleted file mode 100644 index 831447689..000000000 --- a/openslides/core/static/js/dashboard.js +++ /dev/null @@ -1,293 +0,0 @@ -/* - * JavaScript functions for OpenSlides dashboard. - * - */ - -// function that writes the widget list order to a cookie -function saveOrder() { - $(".column").each(function(index, value){ - var colid = value.id; - var cookieName = "openslides-dashboard-" + colid; - // Get the order for this column. - var order = $('#' + colid).sortable("toArray"); - var cookie_content = []; - for (var i = 0; i < order.length; i++) { - widget_id = order[i]; - widget = $('#' + widget_id); - var is_collabsed = 0; - var is_pinned = 0; - if (!widget.find('.collapse').hasClass('in')) { - is_collabsed = 1; - } - if (widget.hasClass('affix')) { - is_pinned = 1; - } - cookie_content[i] = widget_id + '/' + is_collabsed + '/' + is_pinned; - } - $.cookie(cookieName, cookie_content); - }); -} - -// function that restores the widget list order from a cookie -function restoreOrder() { - $(".column").each(function(index, value) { - var colid = value.id; - var cookieName = "openslides-dashboard-" + colid; - var cookie = $.cookie(cookieName); - if ( cookie === undefined ) { return; } - var widgets = cookie.split(","); - for (var i = 0, n = widgets.length; i < n; i++ ) { - var widget_information = widgets[i].split('/'); - var widgetID = widget_information[0]; - var widget = $(".column").find('#' + widgetID); - widget.appendTo($('#' + colid)); - if (widget_information[1] === "1") { - widget.find('.collapse').removeClass('in'); - console.log(widget_information[0]); - widget.find('.collapsebutton').find('.btn').addClass('active'); - } - if (widget_information[2] === "1") { - widget.addClass('affix'); - widget.data('spy', 'affix'); - widget.find('.fixbutton').find('.btn').addClass('active'); - } - } - }); - $('.collapse') - .on('hidden', function () { saveOrder(); }) - .on('shown', function () { saveOrder(); }); -} - -$(function() { - $( ".column" ).sortable({ - connectWith: ".column", - handle: ".widget-header", - stop: function() { saveOrder(); } - }); - - // control the projector view - $('.projector_edit').click(function(event) { - event.preventDefault(); - var link = $(this); - $.ajax({ - type: 'GET', - url: link.attr('href'), - dataType: 'json', - success: function(data) { - // change scale level number - $('#scale_level').html(data['scale_level']); - if ( data['scale_level'] != 0 ) - $('#scale_level').addClass('notNull'); - else - $('#scale_level').removeClass('notNull'); - // change scroll level number - $('#scroll_level').html(data['scroll_level']); - if ( data['scroll_level'] != 0 ) { - $('#scroll_level').addClass('notNull'); - if ( $('#scroll_up_button').hasClass('disabled') ) - $('#scroll_up_button').removeClass('disabled'); - } - else { - $('#scroll_level').removeClass('notNull'); - $('#scroll_up_button').addClass('disabled'); - } - } - }); - }); - - // control countdown - // TODO: Move Countdown-code into the projector app, or merge the projector - // app with the core app. - $('.countdown_control').click(function(event) { - event.preventDefault(); - var link = $(this); - var requestData = {}; - if (link.attr('id') == "countdown_set") { - requestData = { "countdown_time" : $( "#countdown_time" ).val() }; - } - $.ajax({ - type: 'GET', - url: link.attr('href'), - data: requestData, - dataType: 'json', - success: function(data) { - if (data['state'] == 'active') { - $('#countdown_play').hide(); - $('#countdown_stop').show(); - } else { - $('#countdown_play').show(); - $('#countdown_stop').hide(); - } - $('#countdown_time').val(data['countdown_time']); - } - }); - }); - - $('#countdown_set').click(function(event) { - // Create a shortcut from the value in the form - event.preventDefault(); - var times = get_times(); - times.push($("#countdown_time" ).val()); - localStorage.setItem('countdown_shortcut', times.join()); - build_countdown_shortcuts(); - }); - - get_times = function() { - // Loads the time values from the local storages. Converts all values - // to integers and removes doubles. - // Returns an empty array if an error occurs - try { - return localStorage.getItem('countdown_shortcut').split(',') - .map(function(value) { - // converts times into int - return parseInt(value); - }).filter(function(value, index, self) { - // filters doubles - return self.indexOf(value) === index; - }); - } catch(err) { - return []; - } - }; - - $('.countdown_shortcut_time').click(function(event) { - // click on a shortcut. Set the form value and simulate a click event. - event.preventDefault(); - var time = $(this).children('span').html(); - $('#countdown_time').val(time); - $('#countdown_set').click(); - }); - - $('.countdown_shortcut_time .close').click(function(event) { - // Removes a shortcut. - event.preventDefault(); - var time = $(this).parent().parent().children('span').html(); - var times = get_times().filter( - function(value) { - return value !== parseInt(time); - } - ); - localStorage.setItem('countdown_shortcut', times); - build_countdown_shortcuts(); - }); - - build_countdown_shortcuts = function() { - // Recreates the countdown shortcuts - var times = get_times(); - $('#countdown_shortcut_storage').empty(); - $.each(times, function(index, time) { - var element = $('#countdown_shortcut_dummy').clone(withDataAndEvents=true); - element.attr('id', ''); - $('span', element).html(time); - element.appendTo('#countdown_shortcut_storage'); - }); - }; - - // build shortcuts at start time. - build_countdown_shortcuts(); - - // activate/deactivate overlay - $('.overlay_activate_link').click(function(event) { - event.preventDefault(); - var link = $(this); - $.ajax({ - type: 'GET', - url: link.attr('href'), - dataType: 'json', - success: function(data) { - if (data['active']) { - $('#' + data['name'] + '_active').show(); - $('#' + data['name'] + '_inactive').hide(); - } else { - $('#' + data['name'] + '_active').hide(); - $('#' + data['name'] + '_inactive').show(); - } - } - }); - }); - - $('#overlay_message').ajaxForm({ - dataType: 'json', - success: function(data) { - $('#overlay_message_text').val(data['overlay_message']); - } - }); - $('.fixbutton button').click(function (event) { - event.preventDefault(); - if($(this).hasClass('active')) { - $(this).closest('.widget').removeClass('affix'); - $(this).closest('.widget').removeAttr('data-spy'); - saveOrder(); - } else { - $(this).closest('.widget').addClass('affix'); - $(this).closest('.widget').attr('data-spy', 'affix'); - saveOrder(); - } - }); - - // control pdf pages - $('.pdf-page-ctl').click(function(event){ - event.preventDefault(); - var link = $(this); - $.ajax({ - type: 'GET', - url: link.attr('href'), - dataType: 'json', - success: function(data) { - if (typeof data.current_page !== 'undefined') { - $('#page_num').val(data.current_page); - } - } - }); - }); - - $('.set-page-form').submit(function() { - $(this).ajaxSubmit(); - return false; - }); - - $('.go-first-page').click(function() { - $('#page_num').val('1'); - $('.set-page-form').ajaxSubmit(); - }); - - $('.pdf-toggle-fullscreen').click(function(event){ - event.preventDefault(); - var link = $(this); - $.ajax({ - type: 'GET', - url: link.attr('href'), - dataType: 'json', - success: function(data) { - if(data.fullscreen) { - if (!link.hasClass('btn-primary')) { - link.addClass('btn-primary'); - link.find('i').addClass('icon-white'); - } - } else { - if (link.hasClass('btn-primary')) { - link.removeClass('btn-primary'); - link.find('i').removeClass('icon-white'); - } - } - } - }); - }); - -/* comment out this function because '$.browser' has been removed from jquery 1.9, see: - http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/ - TODO: use jquery migrate to have $.browser support for IE8; - - if ($.browser.msie) { - if ($.browser.version >= 8.0 && $.browser.version < 9.0) - { - // scaling bug in IE8.. iframe has to be 4 times bigger - $( "#iframe" ).css('width', 1024 * 4); - $( "#iframe" ).css('height', 768 * 4); - } - $( "#iframe" ).css('zoom', '0.25'); - } -*/ - - restoreOrder(); -}); diff --git a/openslides/core/static/js/jquery/datepicker-config.js b/openslides/core/static/js/jquery/datepicker-config.js deleted file mode 100644 index 39b3720c4..000000000 --- a/openslides/core/static/js/jquery/datepicker-config.js +++ /dev/null @@ -1,45 +0,0 @@ -$(function() { - $.datepicker.regional[gettext('en')] = { - prevText: gettext('previous month'), - nextText: gettext('next month'), - monthNames: [ - gettext('January'), gettext('February'), gettext('March'), - gettext('April'), gettext('May'), gettext('June'), - gettext('July'), gettext('August'), gettext('September'), - gettext('October'), gettext('November'), gettext('December') - ], - monthNamesShort: [ - gettext('Jan'), gettext('Feb'), gettext('Mar'), - gettext('Apr'), gettext('May'), gettext('Jun'), - gettext('Jul'), gettext('Aug'), gettext('Sep'), - gettext('Oct'), gettext('Nov'), gettext('Dec') - ], - dayNames: [ - gettext('Sunday'), gettext('Monday'), gettext('Tuesday'), gettext('Wednesday'), - gettext('Thursday'), gettext('Friday'), gettext('Saturday') - ], - dayNamesMin: [ - gettext('Su'), gettext('Mo'), gettext('Tu'), gettext('We'), - gettext('Th'), gettext('Fr'), gettext('Sa') - ], - dayNamesShort: [ - gettext('Su'), gettext('Mo'), gettext('Tu'), gettext('We'), - gettext('Th'), gettext('Fr'), gettext('Sa') - ], - dateFormat: 'dd.mm.yy', firstDay: 1, isRTL: false - }; - - $.datepicker.setDefaults($.datepicker.regional[gettext('en')]); - - $("#id_agenda_start_event_date_time").datetimepicker ( - { - hour: 12, - timeFormat: 'HH:mm', - timeText: gettext('Time'), - hourText: gettext('Hour'), - minuteText: gettext('Minute'), - currentText: gettext('Current time'), - closeText: gettext('Close') - } - ); -}); diff --git a/openslides/core/static/js/jquery/jquery-ui-nestedSortable.js b/openslides/core/static/js/jquery/jquery-ui-nestedSortable.js deleted file mode 100644 index e6c0d6245..000000000 --- a/openslides/core/static/js/jquery/jquery-ui-nestedSortable.js +++ /dev/null @@ -1,429 +0,0 @@ -/* - * jQuery UI Nested Sortable - * v 1.3.5 / 21 jun 2012 - * http://mjsarfatti.com/code/nestedSortable - * - * Depends on: - * jquery.ui.sortable.js 1.8+ - * - * Copyright (c) 2010-2012 Manuele J Sarfatti - * Licensed under the MIT License - * http://www.opensource.org/licenses/mit-license.php - */ - -(function($) { - - $.widget("mjs.nestedSortable", $.extend({}, $.ui.sortable.prototype, { - - options: { - tabSize: 20, - disableNesting: 'mjs-nestedSortable-no-nesting', - errorClass: 'mjs-nestedSortable-error', - doNotClear: false, - listType: 'ol', - maxLevels: 0, - protectRoot: false, - rootID: null, - rtl: false, - isAllowed: function(item, parent) { return true; } - }, - - _create: function() { - this.element.data('sortable', this.element.data('nestedSortable')); - - if (!this.element.is(this.options.listType)) - throw new Error('nestedSortable: Please check the listType option is set to your actual list type'); - - return $.ui.sortable.prototype._create.apply(this, arguments); - }, - - destroy: function() { - this.element - .removeData("nestedSortable") - .unbind(".nestedSortable"); - return $.ui.sortable.prototype.destroy.apply(this, arguments); - }, - - _mouseDrag: function(event) { - - //Compute the helpers position - this.position = this._generatePosition(event); - this.positionAbs = this._convertPositionTo("absolute"); - - if (!this.lastPositionAbs) { - this.lastPositionAbs = this.positionAbs; - } - - var o = this.options; - - //Do scrolling - if(this.options.scroll) { - var scrolled = false; - if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') { - - if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) - this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed; - else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity) - this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed; - - if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity) - this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed; - else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity) - this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed; - - } else { - - if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) - scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); - else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) - scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); - - if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) - scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); - else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) - scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); - - } - - if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) - $.ui.ddmanager.prepareOffsets(this, event); - } - - //Regenerate the absolute position used for position checks - this.positionAbs = this._convertPositionTo("absolute"); - - // Find the top offset before rearrangement, - var previousTopOffset = this.placeholder.offset().top; - - //Set the helper position - if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px'; - if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px'; - - //Rearrange - for (var i = this.items.length - 1; i >= 0; i--) { - - //Cache variables and intersection, continue if no intersection - var item = this.items[i], itemElement = item.item[0], intersection = this._intersectsWithPointer(item); - if (!intersection) continue; - - if(itemElement != this.currentItem[0] //cannot intersect with itself - && this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != itemElement //no useless actions that have been done before - && !$.contains(this.placeholder[0], itemElement) //no action if the item moved is the parent of the item checked - && (this.options.type == 'semi-dynamic' ? !$.contains(this.element[0], itemElement) : true) - //&& itemElement.parentNode == this.placeholder[0].parentNode // only rearrange items within the same container - ) { - - $(itemElement).mouseenter(); - - this.direction = intersection == 1 ? "down" : "up"; - - if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) { - $(itemElement).mouseleave(); - this._rearrange(event, item); - } else { - break; - } - - // Clear emtpy ul's/ol's - this._clearEmpty(itemElement); - - this._trigger("change", event, this._uiHash()); - break; - } - } - - var parentItem = (this.placeholder[0].parentNode.parentNode && - $(this.placeholder[0].parentNode.parentNode).closest('.ui-sortable').length) - ? $(this.placeholder[0].parentNode.parentNode) - : null, - level = this._getLevel(this.placeholder), - childLevels = this._getChildLevels(this.helper); - - // To find the previous sibling in the list, keep backtracking until we hit a valid list item. - var previousItem = this.placeholder[0].previousSibling ? $(this.placeholder[0].previousSibling) : null; - if (previousItem != null) { - while (previousItem[0].nodeName.toLowerCase() != 'li' || previousItem[0] == this.currentItem[0] || previousItem[0] == this.helper[0]) { - if (previousItem[0].previousSibling) { - previousItem = $(previousItem[0].previousSibling); - } else { - previousItem = null; - break; - } - } - } - - // To find the next sibling in the list, keep stepping forward until we hit a valid list item. - var nextItem = this.placeholder[0].nextSibling ? $(this.placeholder[0].nextSibling) : null; - if (nextItem != null) { - while (nextItem[0].nodeName.toLowerCase() != 'li' || nextItem[0] == this.currentItem[0] || nextItem[0] == this.helper[0]) { - if (nextItem[0].nextSibling) { - nextItem = $(nextItem[0].nextSibling); - } else { - nextItem = null; - break; - } - } - } - - var newList = document.createElement(o.listType); - - this.beyondMaxLevels = 0; - - // If the item is moved to the left, send it to its parent's level unless there are siblings below it. - if (parentItem != null && nextItem == null && - (o.rtl && (this.positionAbs.left + this.helper.outerWidth() > parentItem.offset().left + parentItem.outerWidth()) || - !o.rtl && (this.positionAbs.left < parentItem.offset().left))) { - parentItem.after(this.placeholder[0]); - this._clearEmpty(parentItem[0]); - this._trigger("change", event, this._uiHash()); - } - // If the item is below a sibling and is moved to the right, make it a child of that sibling. - else if (previousItem != null && - (o.rtl && (this.positionAbs.left + this.helper.outerWidth() < previousItem.offset().left + previousItem.outerWidth() - o.tabSize) || - !o.rtl && (this.positionAbs.left > previousItem.offset().left + o.tabSize))) { - this._isAllowed(previousItem, level, level+childLevels+1); - if (!previousItem.children(o.listType).length) { - previousItem[0].appendChild(newList); - } - // If this item is being moved from the top, add it to the top of the list. - if (previousTopOffset && (previousTopOffset <= previousItem.offset().top)) { - previousItem.children(o.listType).prepend(this.placeholder); - } - // Otherwise, add it to the bottom of the list. - else { - previousItem.children(o.listType)[0].appendChild(this.placeholder[0]); - } - this._trigger("change", event, this._uiHash()); - } - else { - this._isAllowed(parentItem, level, level+childLevels); - } - - //Post events to containers - this._contactContainers(event); - - //Interconnect with droppables - if($.ui.ddmanager) $.ui.ddmanager.drag(this, event); - - //Call callbacks - this._trigger('sort', event, this._uiHash()); - - this.lastPositionAbs = this.positionAbs; - return false; - - }, - - _mouseStop: function(event, noPropagation) { - - // If the item is in a position not allowed, send it back - if (this.beyondMaxLevels) { - - this.placeholder.removeClass(this.options.errorClass); - - if (this.domPosition.prev) { - $(this.domPosition.prev).after(this.placeholder); - } else { - $(this.domPosition.parent).prepend(this.placeholder); - } - - this._trigger("revert", event, this._uiHash()); - - } - - // Clean last empty ul/ol - for (var i = this.items.length - 1; i >= 0; i--) { - var item = this.items[i].item[0]; - this._clearEmpty(item); - } - - $.ui.sortable.prototype._mouseStop.apply(this, arguments); - - }, - - serialize: function(options) { - - var o = $.extend({}, this.options, options), - items = this._getItemsAsjQuery(o && o.connected), - str = []; - - $(items).each(function() { - var res = ($(o.item || this).attr(o.attribute || 'id') || '') - .match(o.expression || (/(.+)[-=_](.+)/)), - pid = ($(o.item || this).parent(o.listType) - .parent(o.items) - .attr(o.attribute || 'id') || '') - .match(o.expression || (/(.+)[-=_](.+)/)); - - if (res) { - str.push(((o.key || res[1]) + '[' + (o.key && o.expression ? res[1] : res[2]) + ']') - + '=' - + (pid ? (o.key && o.expression ? pid[1] : pid[2]) : o.rootID)); - } - }); - - if(!str.length && o.key) { - str.push(o.key + '='); - } - - return str.join('&'); - - }, - - toHierarchy: function(options) { - - var o = $.extend({}, this.options, options), - sDepth = o.startDepthCount || 0, - ret = []; - - $(this.element).children(o.items).each(function () { - var level = _recursiveItems(this); - ret.push(level); - }); - - return ret; - - function _recursiveItems(item) { - var id = ($(item).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/)); - if (id) { - var currentItem = {"id" : id[2]}; - if ($(item).children(o.listType).children(o.items).length > 0) { - currentItem.children = []; - $(item).children(o.listType).children(o.items).each(function() { - var level = _recursiveItems(this); - currentItem.children.push(level); - }); - } - return currentItem; - } - } - }, - - toArray: function(options) { - - var o = $.extend({}, this.options, options), - sDepth = o.startDepthCount || 0, - ret = [], - left = 2; - - ret.push({ - "item_id": o.rootID, - "parent_id": 'none', - "depth": sDepth, - "left": '1', - "right": ($(o.items, this.element).length + 1) * 2 - }); - - $(this.element).children(o.items).each(function () { - left = _recursiveArray(this, sDepth + 1, left); - }); - - ret = ret.sort(function(a,b){ return (a.left - b.left); }); - - return ret; - - function _recursiveArray(item, depth, left) { - - var right = left + 1, - id, - pid; - - if ($(item).children(o.listType).children(o.items).length > 0) { - depth ++; - $(item).children(o.listType).children(o.items).each(function () { - right = _recursiveArray($(this), depth, right); - }); - depth --; - } - - id = ($(item).attr(o.attribute || 'id')).match(o.expression || (/(.+)[-=_](.+)/)); - - if (depth === sDepth + 1) { - pid = o.rootID; - } else { - var parentItem = ($(item).parent(o.listType) - .parent(o.items) - .attr(o.attribute || 'id')) - .match(o.expression || (/(.+)[-=_](.+)/)); - pid = parentItem[2]; - } - - if (id) { - ret.push({"item_id": id[2], "parent_id": pid, "depth": depth, "left": left, "right": right}); - } - - left = right + 1; - return left; - } - - }, - - _clearEmpty: function(item) { - - var emptyList = $(item).children(this.options.listType); - if (emptyList.length && !emptyList.children().length && !this.options.doNotClear) { - emptyList.remove(); - } - - }, - - _getLevel: function(item) { - - var level = 1; - - if (this.options.listType) { - var list = item.closest(this.options.listType); - while (list && list.length > 0 && - !list.is('.ui-sortable')) { - level++; - list = list.parent().closest(this.options.listType); - } - } - - return level; - }, - - _getChildLevels: function(parent, depth) { - var self = this, - o = this.options, - result = 0; - depth = depth || 0; - - $(parent).children(o.listType).children(o.items).each(function (index, child) { - result = Math.max(self._getChildLevels(child, depth + 1), result); - }); - - return depth ? result + 1 : result; - }, - - _isAllowed: function(parentItem, level, levels) { - var o = this.options, - isRoot = $(this.domPosition.parent).hasClass('ui-sortable') ? true : false, - maxLevels = this.placeholder.closest('.ui-sortable').nestedSortable('option', 'maxLevels'); // this takes into account the maxLevels set to the recipient list - - // Is the root protected? - // Are we trying to nest under a no-nest? - // Are we nesting too deep? - if (!o.isAllowed(this.currentItem, parentItem) || - parentItem && parentItem.hasClass(o.disableNesting) || - o.protectRoot && (parentItem == null && !isRoot || isRoot && level > 1)) { - this.placeholder.addClass(o.errorClass); - if (maxLevels < levels && maxLevels != 0) { - this.beyondMaxLevels = levels - maxLevels; - } else { - this.beyondMaxLevels = 1; - } - } else { - if (maxLevels < levels && maxLevels != 0) { - this.placeholder.addClass(o.errorClass); - this.beyondMaxLevels = levels - maxLevels; - } else { - this.placeholder.removeClass(o.errorClass); - this.beyondMaxLevels = 0; - } - } - } - - })); - - $.mjs.nestedSortable.prototype.options = $.extend({}, $.ui.sortable.prototype.options, $.mjs.nestedSortable.prototype.options); -})(jQuery); diff --git a/openslides/core/static/js/jquery/jquery-ui-sliderAccess.min.js b/openslides/core/static/js/jquery/jquery-ui-sliderAccess.min.js deleted file mode 100644 index 3b42ed0d0..000000000 --- a/openslides/core/static/js/jquery/jquery-ui-sliderAccess.min.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - * jQuery UI Slider Access - * By: Trent Richardson [http://trentrichardson.com] - * Version 0.3 - * Last Modified: 10/20/2012 - * - * Copyright 2011 Trent Richardson - * Dual licensed under the MIT and GPL licenses. - * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt - * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt - * - */ -(function($){$.fn.extend({sliderAccess:function(options){options=options||{};options.touchonly=options.touchonly!==undefined?options.touchonly:true;if(options.touchonly===true&&!("ontouchend"in document))return $(this);return $(this).each(function(i,obj){var $t=$(this),o=$.extend({},{where:'after',step:$t.slider('option','step'),upIcon:'ui-icon-plus',downIcon:'ui-icon-minus',text:false,upText:'+',downText:'-',buttonset:true,buttonsetTag:'span',isRTL:false},options),$buttons=$('<'+o.buttonsetTag+' class="ui-slider-access">'+''+''+'');$buttons.children('button').each(function(j,jobj){var $jt=$(this);$jt.button({text:o.text,icons:{primary:$jt.data('icon')}}).click(function(e){var step=$jt.data('step'),curr=$t.slider('value'),newval=curr+=step*1,minval=$t.slider('option','min'),maxval=$t.slider('option','max'),slidee=$t.slider("option","slide")||function(){},stope=$t.slider("option","stop")||function(){};e.preventDefault();if(newvalmaxval)return;$t.slider('value',newval);slidee.call($t,null,{value:newval});stope.call($t,null,{value:newval})})});$t[o.where]($buttons);if(o.buttonset){$buttons.removeClass('ui-corner-right').removeClass('ui-corner-left').buttonset();$buttons.eq(0).addClass('ui-corner-left');$buttons.eq(1).addClass('ui-corner-right')}var bOuterWidth=$buttons.css({marginLeft:((o.where=='after'&&!o.isRTL)||(o.where=='before'&&o.isRTL)?10:0),marginRight:((o.where=='before'&&!o.isRTL)||(o.where=='after'&&o.isRTL)?10:0)}).outerWidth(true)+5;var tOuterWidth=$t.outerWidth(true);$t.css('display','inline-block').width(tOuterWidth-bOuterWidth)})}})})(jQuery); \ No newline at end of file diff --git a/openslides/core/static/js/jquery/jquery-ui-timepicker-addon.min.js b/openslides/core/static/js/jquery/jquery-ui-timepicker-addon.min.js deleted file mode 100644 index 5bd022c6b..000000000 --- a/openslides/core/static/js/jquery/jquery-ui-timepicker-addon.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - * jQuery timepicker addon - * By: Trent Richardson [http://trentrichardson.com] - * Version 1.2 - * Last Modified: 02/02/2013 - * - * Copyright 2013 Trent Richardson - * You may use this project under MIT or GPL licenses. - * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt - * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt - */ -(function($){$.ui.timepicker=$.ui.timepicker||{};if($.ui.timepicker.version){return}$.extend($.ui,{timepicker:{version:"1.2"}});var Timepicker=function(){this.regional=[];this.regional['']={currentText:'Now',closeText:'Done',amNames:['AM','A'],pmNames:['PM','P'],timeFormat:'HH:mm',timeSuffix:'',timeOnlyTitle:'Choose Time',timeText:'Time',hourText:'Hour',minuteText:'Minute',secondText:'Second',millisecText:'Millisecond',timezoneText:'Time Zone',isRTL:false};this._defaults={showButtonPanel:true,timeOnly:false,showHour:true,showMinute:true,showSecond:false,showMillisec:false,showTimezone:false,showTime:true,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,hour:0,minute:0,second:0,millisec:0,timezone:null,useLocalTimezone:false,defaultTimezone:"+0000",hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,minDateTime:null,maxDateTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,alwaysSetTime:true,separator:' ',altFieldTimeOnly:true,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:true,timezoneIso8601:false,timezoneList:null,addSliderAccess:false,sliderAccessArgs:null,controlType:'slider',defaultValue:null,parse:'strict'};$.extend(this._defaults,this.regional[''])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,timezone_select:null,hour:0,minute:0,second:0,millisec:0,timezone:null,defaultTimezone:"+0000",hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,ampm:'',formattedDate:'',formattedTime:'',formattedDateTime:'',timezoneList:null,units:['hour','minute','second','millisec'],control:null,setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_newInst:function($input,o){var tp_inst=new Timepicker(),inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults){if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr('time:'+attrName);if(attrValue){try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}}overrides={beforeShow:function(input,dp_inst){if($.isFunction(tp_inst._defaults.evnts.beforeShow)){return tp_inst._defaults.evnts.beforeShow.call($input[0],input,dp_inst,tp_inst)}},onChangeMonthYear:function(year,month,dp_inst){tp_inst._updateDateTime(dp_inst);if($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)){tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],year,month,dp_inst,tp_inst)}},onClose:function(dateText,dp_inst){if(tp_inst.timeDefined===true&&$input.val()!==''){tp_inst._updateDateTime(dp_inst)}if($.isFunction(tp_inst._defaults.evnts.onClose)){tp_inst._defaults.evnts.onClose.call($input[0],dateText,dp_inst,tp_inst)}}};for(i in overrides){if(overrides.hasOwnProperty(i)){fns[i]=o[i]||null}}tp_inst._defaults=$.extend({},this._defaults,inlineSettings,o,overrides,{evnts:fns,timepicker:tp_inst});tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(val){return val.toUpperCase()});tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(val){return val.toUpperCase()});if(typeof(tp_inst._defaults.controlType)==='string'){if($.fn[tp_inst._defaults.controlType]===undefined){tp_inst._defaults.controlType='select'}tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]}else{tp_inst.control=tp_inst._defaults.controlType}if(tp_inst._defaults.timezoneList===null){var timezoneList=['-1200','-1100','-1000','-0930','-0900','-0800','-0700','-0600','-0500','-0430','-0400','-0330','-0300','-0200','-0100','+0000','+0100','+0200','+0300','+0330','+0400','+0430','+0500','+0530','+0545','+0600','+0630','+0700','+0800','+0845','+0900','+0930','+1000','+1030','+1100','+1130','+1200','+1245','+1300','+1400'];if(tp_inst._defaults.timezoneIso8601){timezoneList=$.map(timezoneList,function(val){return val=='+0000'?'Z':(val.substring(0,3)+':'+val.substring(3))})}tp_inst._defaults.timezoneList=timezoneList}tp_inst.timezone=tp_inst._defaults.timezone;tp_inst.hour=tp_inst._defaults.hourtp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour;tp_inst.minute=tp_inst._defaults.minutetp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute;tp_inst.second=tp_inst._defaults.secondtp_inst._defaults.secondMax?tp_inst._defaults.secondMax:tp_inst._defaults.second;tp_inst.millisec=tp_inst._defaults.millisectp_inst._defaults.millisecMax?tp_inst._defaults.millisecMax:tp_inst._defaults.millisec;tp_inst.ampm='';tp_inst.$input=$input;if(o.altField){tp_inst.$altInput=$(o.altField).css({cursor:'pointer'}).focus(function(){$input.trigger("focus")})}if(tp_inst._defaults.minDate===0||tp_inst._defaults.minDateTime===0){tp_inst._defaults.minDate=new Date()}if(tp_inst._defaults.maxDate===0||tp_inst._defaults.maxDateTime===0){tp_inst._defaults.maxDate=new Date()}if(tp_inst._defaults.minDate!==undefined&&tp_inst._defaults.minDate instanceof Date){tp_inst._defaults.minDateTime=new Date(tp_inst._defaults.minDate.getTime())}if(tp_inst._defaults.minDateTime!==undefined&&tp_inst._defaults.minDateTime instanceof Date){tp_inst._defaults.minDate=new Date(tp_inst._defaults.minDateTime.getTime())}if(tp_inst._defaults.maxDate!==undefined&&tp_inst._defaults.maxDate instanceof Date){tp_inst._defaults.maxDateTime=new Date(tp_inst._defaults.maxDate.getTime())}if(tp_inst._defaults.maxDateTime!==undefined&&tp_inst._defaults.maxDateTime instanceof Date){tp_inst._defaults.maxDate=new Date(tp_inst._defaults.maxDateTime.getTime())}tp_inst.$input.bind('focus',function(){tp_inst._onFocus()});return tp_inst},_addTimePicker:function(dp_inst){var currDT=(this.$altInput&&this._defaults.altFieldTimeOnly)?this.$input.val()+' '+this.$altInput.val():this.$input.val();this.timeDefined=this._parseTime(currDT);this._limitMinMaxDateTime(dp_inst,false);this._injectTimePicker()},_parseTime:function(timeString,withDate){if(!this.inst){this.inst=$.datepicker._getInst(this.$input[0])}if(withDate||!this._defaults.timeOnly){var dp_dateFormat=$.datepicker._get(this.inst,'dateFormat');try{var parseRes=parseDateTimeInternal(dp_dateFormat,this._defaults.timeFormat,timeString,$.datepicker._getFormatConfig(this.inst),this._defaults);if(!parseRes.timeObj){return false}$.extend(this,parseRes.timeObj)}catch(err){$.timepicker.log("Error parsing the date/time string: "+err+"\ndate/time string = "+timeString+"\ntimeFormat = "+this._defaults.timeFormat+"\ndateFormat = "+dp_dateFormat);return false}return true}else{var timeObj=$.datepicker.parseTime(this._defaults.timeFormat,timeString,this._defaults);if(!timeObj){return false}$.extend(this,timeObj);return true}},_injectTimePicker:function(){var $dp=this.inst.dpDiv,o=this.inst.settings,tp_inst=this,litem='',uitem='',max={},gridSize={},size=null;if($dp.find("div.ui-timepicker-div").length===0&&o.showTimepicker){var noDisplay=' style="display:none;"',html='
'+'
'+o.timeText+'
'+'
';for(var i=0,l=this.units.length;i'+o[litem+'Text']+''+'
';if(o['show'+uitem]&&o[litem+'Grid']>0){html+='
';if(litem=='hour'){for(var h=o[litem+'Min'];h<=max[litem];h+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;var tmph=$.datepicker.formatTime(useAmpm(o.pickerTimeFormat||o.timeFormat)?'hht':'HH',{hour:h},o);html+=''}}else{for(var m=o[litem+'Min'];m<=max[litem];m+=parseInt(o[litem+'Grid'],10)){gridSize[litem]++;html+=''}}html+='
'+tmph+''+((m<10)?'0':'')+m+'
'}html+='
'}html+='
'+o.timezoneText+'
';html+='
';html+='
';var $tp=$(html);if(o.timeOnly===true){$tp.prepend('
'+'
'+o.timeOnlyTitle+'
'+'
');$dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide()}for(var i=0,l=tp_inst.units.length;i0){size=100*gridSize[litem]*o[litem+'Grid']/(max[litem]-o[litem+'Min']);$tp.find('.ui_tpicker_'+litem+' table').css({width:size+"%",marginLeft:o.isRTL?'0':((size/(-2*gridSize[litem]))+"%"),marginRight:o.isRTL?((size/(-2*gridSize[litem]))+"%"):'0',borderCollapse:'collapse'}).find("td").click(function(e){var $t=$(this),h=$t.html(),n=parseInt(h.replace(/[^0-9]/g),10),ap=h.replace(/[^apm]/ig),f=$t.data('for');if(f=='hour'){if(ap.indexOf('p')!==-1&&n<12){n+=12}else{if(ap.indexOf('a')!==-1&&n===12){n=0}}}tp_inst.control.value(tp_inst,tp_inst[f+'_slider'],litem,n);tp_inst._onTimeChange();tp_inst._onSelectHandler()}).css({cursor:'pointer',width:(100/gridSize[litem])+'%',textAlign:'center',overflow:'hidden'})}}this.timezone_select=$tp.find('.ui_tpicker_timezone').append('').find("select");$.fn.append.apply(this.timezone_select,$.map(o.timezoneList,function(val,idx){return $("