Author: hnategh
New Revision: 55763
URL: http://svn.stylite.de/viewvc/egroupware?rev=55763&view=rev
Log:
Enable/Disable add participants based on participant value in calendar edit
Modified:
trunk/calendar/js/app.js
trunk/calendar/templates/default/edit.xet
trunk/calendar/templates/pixelegg/app.css
trunk/calendar/templates/pixelegg/app.less
trunk/egroupware/api/js/etemplate/et2_widget_button.js
trunk/egroupware/api/templates/default/etemplate2.css
— trunk/calendar/js/app.js (original)
+++ trunk/calendar/js/app.js Mon Apr 18 15:56:47 2016
@@ -1117,6 +1117,18 @@
{
et2_dialog.confirm(widget,‘Delete this event’,‘Delete’);
}
-
},
-
-
/**
-
- Change participant add button status based on
-
-
-
*/
-
participantOnChange: function () {
-
var add = this.et2.getWidgetById('add');
-
var participant = this.et2.getWidgetById('participant');
-
-
add.set_readonly(!Number(participant.get_value()));
},
/**
@@ -3288,13 +3300,13 @@
{
$j(window).trigger(‘resize’);
this.setState({state:this.state});
-
// Hide loader after 1 second as a fallback, it will also be hidden
// after loading is complete.
window.setTimeout(jQuery.proxy(function() {
egw.loading_prompt(this.appname,false);
}, this),1000);
— trunk/calendar/templates/default/edit.xet (original)
+++ trunk/calendar/templates/default/edit.xet Mon Apr 18 15:56:47 2016
@@ -54,9 +54,9 @@
-
<row disabled="@no_add" height="35">
-
<button align="center" id="add" image="add" background_image="1" novalidate="1"/>
-
<calendar-owner id="participant" allowFreeEntries="true" span="2" empty_label="Add new participants or resource"/>
-
<row disabled="@no_add" height="35" class="et2_toolbar">
-
<button align="center" id="add" image="add" novalidate="1" background_image="1" readonly="true" ro_image="add"/>
-
<calendar-owner id="participant" allowFreeEntries="true" span="2" empty_label="Add new participants or resource" onchange="app.calendar.participantOnChange"/>
<textbox type="integer" align="center" id="quantity" min="1" size="3"/>
<menulist>
<menupopup class="selectRole" id="role"/>
— trunk/calendar/templates/pixelegg/app.css (original)
+++ trunk/calendar/templates/pixelegg/app.css Mon Apr 18 15:56:47 2016
@@ -11,7 +11,7 @@
-
@package calendar
-
@version $Id$
/
-/ $Id: app.css 55754 2016-04-15 11:12:08Z hnategh $ /
+/ $Id: app.css 55760 2016-04-18 08:34:53Z hnategh $ */
/Media print classes/
@media print {
#calendar-view.et2_container,
@@ -2383,8 +2383,9 @@
}
/calendar series add/
#calendar-edit_add {
- /* .Complete_Button_add;
- &:hover {.Complete_Button_add_hover;} */
- padding-left: 24px;
- background-size: 16px;
- background-position: center;
}
#calendar-edit_add:active {
background-color: #1aa200 !important;
— trunk/calendar/templates/pixelegg/app.less (original)
+++ trunk/calendar/templates/pixelegg/app.less Mon Apr 18 15:56:47 2016
@@ -1089,8 +1089,9 @@
/calendar series add/
#calendar-edit_add {
&:active {background-color: @color_positive_action_active !important;}
-/* .Complete_Button_add;
- &:hover {.Complete_Button_add_hover;} */
- padding-left:24px;
- background-size:16px;
- background-position: center;
}
/calendar search freetime/
#calendar-edit_freetime{
— trunk/egroupware/api/js/etemplate/et2_widget_button.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_button.js Mon Apr 18 15:56:47 2016
@@ -94,7 +94,7 @@
this.setDOMNode(this.image[0]);
return;
}
— trunk/egroupware/api/templates/default/etemplate2.css (original)
+++ trunk/egroupware/api/templates/default/etemplate2.css Mon Apr 18 15:56:47 2016
@@ -254,6 +254,7 @@
background-repeat: no-repeat;
background-size: 16px;
height: 24px;
- background-position: center;
}
button.et2_button_with_image.et2_button_text {
background-position: 4px center;
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs