Hi Isuru, Any reason for this commit? I thought we had plans to remove the add work-list button, and also rename work-list to notifications. AFAIU the older commits that you reverted (as it seems), were done as a part of this.
Thanks, Senaka. On Sat, Jun 9, 2012 at 8:22 PM, <[email protected]> wrote: > Author: isuruw > Date: Sat Jun 9 10:52:14 2012 > New Revision: 129628 > URL: http://wso2.org/svn/browse/wso2?view=rev&revision=129628 > > Log: > adding the worklist add button at top > > Modified: > > carbon/platform/trunk/components/governance/org.wso2.carbon.governance.notifications.ui/src/main/resources/web/worklist/header.jsp > > Modified: > carbon/platform/trunk/components/governance/org.wso2.carbon.governance.notifications.ui/src/main/resources/web/worklist/header.jsp > URL: > http://wso2.org/svn/browse/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.notifications.ui/src/main/resources/web/worklist/header.jsp?rev=129628&r1=129627&r2=129628&view=diff > > ============================================================================== > --- > carbon/platform/trunk/components/governance/org.wso2.carbon.governance.notifications.ui/src/main/resources/web/worklist/header.jsp > (original) > +++ > carbon/platform/trunk/components/governance/org.wso2.carbon.governance.notifications.ui/src/main/resources/web/worklist/header.jsp > Sat Jun 9 10:52:14 2012 > @@ -78,86 +78,86 @@ > <li class="right" id="view-notifications-container"> > <jsp:include page="view-notifications-ajaxprocessor.jsp" /> > </li> > -<%--<li class="middle">|</li>--%> > -<%--<li class="right">--%> > - <%--<a class="add-notification" id="addNotification">+</a>--%> > - <%--<div id="notificationPopupAdd" class="notificationPopup" > style="display:none">--%> > - <%--<div class="popupPointer"></div>--%> > - <%--<div class="popupBox">--%> > - <%--<div class="title"><strong><fmt:message > key="work.list.add.new.notifications"/></strong></div>--%> > +<li class="middle">|</li> > +<li class="right"> > + <a class="add-notification" id="addNotification">+</a> > + <div id="notificationPopupAdd" class="notificationPopup" > style="display:none"> > + <div class="popupPointer"></div> > + <div class="popupBox"> > + <div class="title"><strong><fmt:message > key="work.list.add.new.notifications"/></strong></div> > > - <%--<table class="notificationAddTable">--%> > - <%--<tr>--%> > - <%--<td><fmt:message key="work.list.role"/></td>--%> > - <%--<td>--%> > - <%--<select id="workListRoleInput">--%> > - <%--<%--%> > - <%--for (String role : roles) {--%> > - <%--%>--%> > - <%--<option><%=role%></option>--%> > - <%--<%--%> > - <%--}--%> > - <%--%>--%> > - <%--</select>--%> > - <%--</td>--%> > - <%--</tr>--%> > - <%--<tr>--%> > - <%--<td colspan="2">--%> > - <%--<div><fmt:message > key="work.list.description"/></div>--%> > - <%--<textarea > id="workListDescriptionInput"></textarea>--%> > - <%--</td>--%> > - <%--</tr>--%> > - <%--<tr>--%> > - <%--<td><fmt:message > key="work.list.priority"/></td>--%> > - <%--<td>--%> > - <%--<select id="workListPriorityInput">--%> > - <%--<%--%> > - <%--for (int i = 1; i < 11; i++) {--%> > - <%--%>--%> > - <%--<option <% if (i == 5) { > %>selected="selected"<% } %> ><%=i%></option>--%> > - <%--<%--%> > - <%--}--%> > - <%--%>--%> > - <%--</select>--%> > - <%--</td>--%> > - <%--</tr>--%> > - <%--</table>--%> > + <table class="notificationAddTable"> > + <tr> > + <td><fmt:message key="work.list.role"/></td> > + <td> > + <select id="workListRoleInput"> > + <% > + for (String role : roles) { > + %> > + <option><%=role%></option> > + <% > + } > + %> > + </select> > + </td> > + </tr> > + <tr> > + <td colspan="2"> > + <div><fmt:message > key="work.list.description"/></div> > + <textarea > id="workListDescriptionInput"></textarea> > + </td> > + </tr> > + <tr> > + <td><fmt:message key="work.list.priority"/></td> > + <td> > + <select id="workListPriorityInput"> > + <% > + for (int i = 1; i < 11; i++) { > + %> > + <option <% if (i == 5) { > %>selected="selected"<% } %> ><%=i%></option> > + <% > + } > + %> > + </select> > + </td> > + </tr> > + </table> > > - <%--<div class="title">--%> > - <%--<input type="button" class="button > notificationButton" value="<fmt:message key="work.list.create"/>" > id="addNotificationCreateButton" />--%> > - <%--<input type="button" value="<fmt:message > key="work.list.cancel"/>" id="addNotificationCancelButton" />--%> > - <%--</div>--%> > - <%--</div>--%> > - <%--</div>--%> > -<%--</li>--%> > + <div class="title"> > + <input type="button" class="button notificationButton" > value="<fmt:message key="work.list.create"/>" > id="addNotificationCreateButton" /> > + <input type="button" value="<fmt:message > key="work.list.cancel"/>" id="addNotificationCancelButton" /> > + </div> > + </div> > + </div> > +</li> > </fmt:bundle> > <li class="middle">| > -<%--<script type="text/javascript">--%> > - <%--jQuery('#addNotification').click(--%> > - <%--function(){--%> > - > <%--if(jQuery('#notificationPopupView').is(":visible")){--%> > - <%--jQuery('#notificationPopupView').hide();--%> > - <%--}--%> > - <%--jQuery('#notificationPopupAdd').toggle('slow');--%> > - <%--}--%> > - <%--);--%> > - <%--jQuery('#addNotificationCancelButton').click(function(){--%> > - <%--jQuery('#notificationPopupAdd').toggle('slow');--%> > - <%--});--%> > - <%--jQuery('#addNotificationCreateButton').click(function(){--%> > - <%--createTask();--%> > - <%--updateNotifications();--%> > - <%--jQuery('#notificationPopupAdd').toggle('slow');--%> > - <%--});--%> > - <%--function updateNotifications(){--%> > - <%--jQuery.ajax({--%> > - > <%--url:"../worklist/view-notifications-ajaxprocessor.jsp",--%> > - <%--success:function(data){--%> > - > <%--jQuery('#view-notifications-container').html(data);--%> > - <%--}--%> > - <%--});--%> > - <%--}--%> > -<%--</script>--%> > +<script type="text/javascript"> > + jQuery('#addNotification').click( > + function(){ > + if(jQuery('#notificationPopupView').is(":visible")){ > + jQuery('#notificationPopupView').hide(); > + } > + jQuery('#notificationPopupAdd').toggle('slow'); > + } > + ); > + jQuery('#addNotificationCancelButton').click(function(){ > + jQuery('#notificationPopupAdd').toggle('slow'); > + }); > + jQuery('#addNotificationCreateButton').click(function(){ > + createTask(); > + updateNotifications(); > + jQuery('#notificationPopupAdd').toggle('slow'); > + }); > + function updateNotifications(){ > + jQuery.ajax({ > + url:"../worklist/view-notifications-ajaxprocessor.jsp", > + success:function(data){ > + jQuery('#view-notifications-container').html(data); > + } > + }); > + } > +</script> > <style> > div.header-links a.add-notification{ > background-color:#63ba25; > _______________________________________________ > Commits mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/commits > -- *Senaka Fernando* Member - Integration Technologies Management Committee; Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
