Changeset 5623
- Timestamp:
- 03/05/12 10:22:22 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r5620 r5623 343 343 else 344 344 var myLabels = $("#MyMarckersList"); 345 346 345 myLabels.html("<div class='my-labels'>" + 347 346 "<img src='../prototype/modules/mail/img/tag.png'/>" + … … 353 352 .append(DataLayer.render("../prototype/modules/mail/templates/label_list.ejs", {labels: labels} )) 354 353 .find("li.label-item").css({"background-color":"#ffffff", "border-color":"#CCCCCC", "color":"#444444"}).click(function(event,ui){ 355 if($(event.target).is('.square-color') == false){ 356 var labelId = $(this).attr('class').match(/label-item-([\d]+[()a-zA-Z]*)/)[1]; 357 search_emails("UNDELETED KEYWORD \"$Label"+labelId+"\""); 358 } 359 }).end() 360 .find(".square-color").css("display","").click(function(){ 361 $(this).parent(".label-item").each(function(){ 362 configureLabels({selectedItem: $(this).attr('class').match(/label-item-([\d]+[()a-zA-Z]*)/)[1]}); 363 var id_label_item = $(this).attr('class').match(/label-item-([\d]+[()a-zA-Z]*)/)[1]; 364 $(".label-list-container .label-list").find(".label-item-"+id_label_item).trigger("click"); 365 }); 354 if($(event.target).is('.square-color')){ 355 $(this).each(function(){ 356 configureLabels({selectedItem: $(this).attr('class').match(/label-item-([\d]+[()a-zA-Z]*)/)[1]}); 357 var id_label_item = $(this).attr('class').match(/label-item-([\d]+[()a-zA-Z]*)/)[1]; 358 $(".label-list-container .label-list").find(".label-item-"+id_label_item).trigger("click"); 359 }); 360 } else { 361 var labelId = $(this).attr('class').match(/label-item-([\d]+[()a-zA-Z]*)/)[1]; 362 search_emails("UNDELETED KEYWORD \"$Label"+labelId+"\""); 363 } 366 364 }); 367 365 -
trunk/prototype/modules/mail/templates/label_list.ejs
r5537 r5623 11 11 <input type="hidden" value="<%= data.labels[i].id%>" name="labelItemId" class="id-item-list" /> 12 12 13 <div class="square-color" style=" display:none;width:17px;height:12px;margin-top:1px;-moz-border-radius:3px;-webkit-border-radius:3px;13 <div class="square-color" style="width:17px;height:12px;margin-top:1px;-moz-border-radius:3px;-webkit-border-radius:3px; 14 14 background: <%= (data.labels[i].backgroundColor) ? data.labels[i].backgroundColor : '#ffffff' %>; float:right;"></div> 15 15
Note: See TracChangeset
for help on using the changeset viewer.