Author: hnategh
New Revision: 55928
URL: http://svn.stylite.de/viewvc/egroupware?rev=55928&view=rev
Log:
Implement enable/disable quantity base on participant’s value type
Modified:
trunk/calendar/js/app.js
trunk/calendar/templates/default/app.css
trunk/calendar/templates/pixelegg/app.css
trunk/egroupware/api/js/etemplate/et2_widget_textbox.js
— trunk/calendar/js/app.js (original)
+++ trunk/calendar/js/app.js Fri Apr 29 10:40:55 2016
@@ -1121,15 +1121,36 @@
},
/**
-
- Change participant add button status based on
-
-
- */
- participantOnChange: function () {
-
// array of participants
-
var value = participant.get_value();
-
-
add.set_readonly(value.length <= 0);
-
-
quantity.set_readonly(false);
-
-
// number of resources
-
var nRes = 0;
-
-
for (var i=0;i<value.length;i++)
-
{
-
if (!value[i].match(/\D/ig) || nRes)
-
{
-
quantity.set_readonly(true);
-
quantity.set_value(1);
-
}
-
nRes++;
-
}
},
/**
— trunk/calendar/templates/default/app.css (original)
+++ trunk/calendar/templates/default/app.css Fri Apr 29 10:40:55 2016
@@ -1435,4 +1435,6 @@
{
display:inline;
}
-}
+}
+
+#calendar-edit_quantity.et2_textbox_ro {opacity:0.5;}
— trunk/calendar/templates/pixelegg/app.css (original)
+++ trunk/calendar/templates/pixelegg/app.css Fri Apr 29 10:40:55 2016
@@ -11,7 +11,7 @@
-
@package calendar
-
@version $Id$
/
-/ $Id: app.css 55840 2016-04-25 22:09:57Z nathangray $ /
+/ $Id: app.css 55869 2016-04-26 22:58:35Z nathangray $ */
/Media print classes/
@media print {
#calendar-view.et2_container,
@@ -1394,6 +1394,9 @@
display: inline;
}
}
+#calendar-edit_quantity.et2_textbox_ro {
- opacity: 0.5;
+}
/generell/
.egw_fw_content_browser_iframe img[src$=“svg”] {
background-color: #828282 !important;
@@ -2624,5 +2627,3 @@
#calendar_merge {
margin: 9px 0 0 0;
}
-/* ########################################################################################
-/* * Calendar END */
— trunk/egroupware/api/js/etemplate/et2_widget_textbox.js (original)
+++ trunk/egroupware/api/js/etemplate/et2_widget_textbox.js Fri Apr 29 10:40:55 2016
@@ -249,6 +249,7 @@
*/
set_readonly: function(_readonly) {
this.input.attr(“readonly”, _readonly);
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