Project

General

Profile

« Previous | Next » 

Revision 7960

use icons for all other list editing

View differences:

lib/style/common/templates/metacatui/entryForm.js
215 215
    return count;
216 216
}
217 217

  
218
/** 
219
 * Deprecated in favor of createIconLink() method
220
 * 
218 221
function createImageLink(imgSrc, imgAlt, imgOnClick, cursor) {
219 222
    var link = document.createElement("a");
220 223
    var img = document.createElement("img");
......
231 234
    link.appendChild(img);        
232 235
    return link;
233 236
}
237
*/
234 238

  
235 239
function createIconLink(iconClass, iconAlt, iconOnClick, cursor) {
236 240
    var link = document.createElement("a");
......
577 581
    var imgTD = createTD("","right");
578 582
    imgTD.className = 'rightCol';
579 583

  
580
    imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
584
    imgTD.appendChild(createIconLink("icon-arrow-up",
581 585
                                      "Move Up", "moveUpRow(event)",
582 586
                                      "pointer"));
583 587
    imgTD.appendChild(document.createTextNode(" "));
584
    imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
588
    imgTD.appendChild(createIconLink("icon-arrow-down",
585 589
                                      "Move Down", "moveDownRow(event, 'addtaxarow')",
586 590
                                      "pointer"));
587 591
    imgTD.appendChild(document.createTextNode(" "));
588
    imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
592
    imgTD.appendChild(createIconLink("icon-remove-sign",
589 593
                                      "Delete", "delRow(event)",
590 594
                                      "pointer"));
591 595

  
......
704 708
    var imgTD = createTD("","right");
705 709
    imgTD.className = 'rightCol';
706 710

  
707
    imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
711
    imgTD.appendChild(createIconLink("icon-arrow-up"",
708 712
                                      "Move Up", "moveUpRow(event)",
709 713
                                      "pointer"));
710 714
    imgTD.appendChild(document.createTextNode(" "));
711
    imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
715
    imgTD.appendChild(createIconLink("icon-arrow-down",
712 716
                                      "Move Down", "moveDownRow(event, 'addkeyrow')",
713 717
                                      "pointer"));
714 718
    imgTD.appendChild(document.createTextNode(" "));
715
    imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
719
    imgTD.appendChild(createIconLink("icon-remove-sign",
716 720
                                      "Delete", "delRow(event)",
717 721
                                      "pointer"));
718 722

  

Also available in: Unified diff