Knowledge

User:NQ/WatchlistResetConfirm.js: Difference between revisions

Source 📝

60: 52: 25: 133: 82: 38: 374:
https://en.wikipedia.org/search/?title=Knowledge:Village_pump_(technical)&oldid=746997333#Watchlist:_.22Are_you_sure_you_want_to_mark_all_pages_as_visited.3F.22
244:
https://en.wikipedia.org/search/?title=Knowledge:Village_pump_(technical)&oldid=746997333#Watchlist:_.22Are_you_sure_you_want_to_mark_all_pages_as_visited.3F.22
237:
https://en.wikipedia.org/search/?title=Knowledge:Village_pump_(technical)&oldid=746997333#Watchlist:_.22Are_you_sure_you_want_to_mark_all_pages_as_visited.3F.22
141: 78: 145: 61: 170: 107: 174: 111: 163: 100: 55: 152: 89: 8: 178: 115: 487:}); ############################################################################ */ 26: 445:$ watchlistReset.css('display', 'inline'); //already hidden in css 459:
if (!confirm('Are you sure you want to mark all pages as visited?' )) {
424:/* ############################################################################ 335:/* ############################################################################ 328:/* ############################################################################ 413:* A copy of the GPL is available at https://www.gnu.org/licenses/gpl-2.0.txt 311:* A copy of the GPL is available at https://www.gnu.org/licenses/gpl-2.0.txt 159: 96: 129:
convert to OOjs-UI thanks to the excellent mediawiki documentation
17: 399:* of the License, or (at your option) any later version. See the 392:* as published by the Free Software Foundation; either version 2 289:* of the License, or (at your option) any later version. See the 278:* as published by the Free Software Foundation; either version 2 990:/* Uses ] to reset the watchlist without refreshing the page */ 385:* Licensed under the terms of the GNU General Public License 367:/*Adds a confirmation dialogue to the Watchlist Reset button 267:* Licensed under the terms of the GNU General Public License 438:$ watchlistReset = $ ('#mw-watchlist-resetbutton'); 225:
Adds a confirmation dialogue to the Watchlist Reset button
214:
Adds a confirmation dialogue to the Watchlist Reset button
452:$ watchlistReset.on('click', function(event) { 406:* GNU General Public License for more details. 300:* GNU General Public License for more details. 358:Latest revision as of 01:11, 8 December 2016 142:Latest revision as of 01:11, 8 December 2016 1157:'mw-changeslist-line-not-watched' 590://if already hidden in css; recommended 14: 1133:'.mw-changeslist-line-watched' 1145:'mw-changeslist-line-watched' 79:Revision as of 09:20, 1 November 2016 821:'Mark all pages as visited?' 69: 556:'#mw-watchlist-resetbutton' 190: 151: 139: 132: 127: 88: 76: 23: 1039:'setnotificationtimestamp' 360: 42: 1218: 13: 1: 356: 318: 307: 296: 285: 274: 263: 240: 230: 217: 206: 28:Browse history interactively 7: 10: 1223: 1203: 1202: 1196: 1195: 1189: 1188: 1182: 1181: 1175: 1174: 1171: 1170: 1164: 1163: 1124: 1123: 1102: 1101: 1062: 1061: 1046: 1045: 1030: 1029: 1005: 1004: 998: 997: 994: 993: 987: 986: 983: 982: 946: 945: 909: 908: 881: 880: 841: 840: 828: 827: 812: 811: 796: 795: 771: 770: 767: 766: 751: 750: 720: 719: 716: 715: 700: 699: 666: 665: 632: 631: 598: 597: 594: 593: 563: 562: 541: 540: 537: 536: 506: 505: 502: 501: 495: 494: 491: 490: 484: 483: 477: 476: 470: 469: 463: 462: 456: 455: 449: 448: 442: 441: 435: 434: 428: 427: 421: 420: 316: 305: 294: 283: 272: 261: 201: 198: 175:Pending changes reviewers 138: 112:Pending changes reviewers 75: 417: 416: 410: 409: 403: 402: 396: 395: 389: 388: 382: 381: 378: 377: 371: 370: 364: 363: 361: 171:Extended confirmed users 108:Extended confirmed users 466:event.preventDefault(); 74: 1001:// Code adapted from ] 1095:'editToken' 149: 86: 865:'Confirm' 805:'Confirm' 578:'display' 355: 140: 77: 57: 1214: 1208: 1207: 1201: 1200: 1194: 1193: 1187: 1186: 1180: 1179: 1173: 1169: 1168: 1162: 1161: 1158: 1155: 1152: 1149: 1146: 1143: 1140: 1137: 1134: 1131: 1128: 1122: 1121: 1118: 1115: 1112: 1109: 1106: 1100: 1099: 1096: 1093: 1090: 1087: 1084: 1081: 1078: 1075: 1072: 1069: 1066: 1060: 1059: 1056: 1053: 1050: 1044: 1043: 1040: 1037: 1034: 1028: 1027: 1024: 1021: 1018: 1015: 1012: 1009: 1003: 1002: 996: 992: 991: 985: 981: 980: 977: 974: 971: 968: 965: 962: 959: 956: 953: 950: 944: 943: 940: 937: 934: 931: 928: 925: 922: 919: 916: 913: 907: 906: 903: 900: 897: 894: 891: 888: 885: 879: 878: 875: 872: 869: 866: 863: 860: 857: 854: 851: 848: 845: 839: 838: 835: 832: 826: 825: 822: 819: 816: 810: 809: 806: 803: 800: 794: 793: 790: 787: 784: 781: 778: 775: 769: 765: 764: 761: 758: 755: 749: 748: 745: 742: 739: 736: 733: 730: 727: 724: 723:$ watchlistReset 718: 714: 713: 710: 707: 704: 698: 697: 694: 691: 688: 685: 682: 679: 676: 673: 670: 664: 663: 660: 657: 654: 651: 648: 645: 642: 639: 636: 630: 629: 626: 623: 620: 617: 614: 611: 608: 605: 602: 596: 592: 591: 588: 585: 584:'inline' 582: 579: 576: 573: 570: 567: 566:$ watchlistReset 561: 560: 557: 554: 551: 548: 545: 544:$ watchlistReset 539: 535: 534: 531: 528: 525: 522: 519: 516: 513: 510: 504: 500: 499: 493: 489: 488: 482: 481: 475: 474: 468: 467: 461: 460: 454: 453: 447: 446: 440: 439: 433: 432: 426: 425: 419: 415: 414: 408: 407: 401: 400: 394: 393: 387: 386: 380: 376: 375: 369: 368: 193: 185: 167: 148: 130: 122: 104: 85: 58: 49: 46: 31: 29: 1222: 1221: 1217: 1216: 1215: 1213: 1212: 1211: 1210: 1209: 1205: 1198: 1191: 1184: 1177: 1166: 1159: 1156: 1153: 1150: 1147: 1144: 1141: 1138: 1135: 1132: 1129: 1126: 1119: 1116: 1113: 1110: 1107: 1104: 1097: 1094: 1091: 1088: 1085: 1082: 1079: 1076: 1073: 1070: 1067: 1064: 1057: 1054: 1051: 1049:entirewatchlist 1048: 1041: 1038: 1035: 1032: 1025: 1022: 1019: 1016: 1013: 1010: 1007: 1000: 989: 978: 975: 973:'reset' 972: 969: 966: 963: 960: 957: 954: 951: 948: 941: 938: 935: 932: 929: 926: 923: 920: 917: 914: 911: 904: 901: 898: 895: 892: 889: 886: 883: 876: 873: 870: 867: 864: 861: 858: 855: 853:'reset' 852: 849: 846: 843: 836: 833: 830: 823: 820: 817: 814: 807: 804: 801: 798: 791: 788: 785: 782: 779: 776: 773: 762: 759: 756: 753: 746: 743: 740: 737: 734: 731: 728: 725: 722: 711: 708: 705: 702: 695: 692: 689: 686: 683: 680: 677: 674: 671: 668: 661: 658: 655: 652: 649: 646: 643: 640: 637: 634: 627: 624: 621: 618: 615: 612: 609: 606: 603: 600: 589: 586: 583: 580: 577: 574: 571: 568: 565: 558: 555: 552: 549: 546: 543: 532: 529: 526: 523: 520: 517: 514: 511: 508: 497: 486: 479: 472: 465: 458: 451: 444: 437: 431:$ (function() { 430: 423: 412: 405: 398: 391: 384: 373: 366: 352: 351:$ (function() { 345: 344:$ (function() { 336: 329: 312: 301: 290: 279: 268: 257: 252: 245: 238: 236: 226: 224: 215: 213: 194: 191: 189: 188: 187: 183: 181: 157: 155: 150: 144: 136: 134:← Previous edit 131: 128: 126: 125: 124: 120: 118: 94: 92: 87: 81: 73: 72: 71: 70: 68: 67: 66: 65: 64: 63: 54: 50: 47: 45:Content deleted 44: 41: 39:← Previous edit 36: 35: 34: 27: 22: 21: 20: 12: 11: 5: 1220: 760:preventDefault 675:'body' 362: 359: 354: 353: 350: 348: 346: 343: 341: 338: 337: 334: 332: 330: 327: 325: 322: 321: 319: 317: 314: 313: 310: 308: 306: 303: 302: 299: 297: 295: 292: 291: 288: 286: 284: 281: 280: 277: 275: 273: 270: 269: 266: 264: 262: 259: 258: 255: 253: 250: 247: 246: 243: 241: 239: 234: 233: 231: 228: 227: 222: 220: 218: 216: 211: 209: 207: 204: 203: 200: 196: 195: 182: 169: 168: 153: 137: 119: 106: 105: 90: 59: 53: 51: 43: 37: 33: 32: 24: 15: 9: 6: 4: 3: 2: 1219: 1204: 1197: 1190: 1183: 1176: 1172: 1165: 1125: 1103: 1063: 1047: 1031: 1006: 999: 995: 988: 984: 947: 910: 882: 842: 829: 813: 797: 786:messageDialog 774:windowManager 772: 768: 752: 721: 717: 703:windowManager 701: 687:windowManager 667: 659:WindowManager 638:windowManager 633: 625:MessageDialog 604:messageDialog 599: 595: 564: 542: 538: 507: 503: 498:/* Using ] */ 496: 492: 485: 478: 471: 464: 457: 450: 443: 436: 429: 422: 418: 411: 404: 397: 390: 383: 379: 372: 365: 357: 349: 347: 342: 340: 339: 333: 331: 326: 324: 323: 320: 315: 309: 304: 298: 293: 287: 282: 276: 271: 265: 260: 256: 254: 251: 249: 248: 242: 232: 229: 219: 208: 205: 197: 180: 176: 172: 165: 161: 156: 147: 143: 135: 117: 113: 109: 102: 98: 93: 84: 80: 62: 48:Content added 40: 30: 19: 1139:removeClass 179:Rollbackers 146:view source 116:Rollbackers 83:view source 1055:'' 958:&& 780:openWindow 709:addWindows 693:$ element 1151:addClass 1114:function 924:function 893:function 735:function 527:function 164:contribs 101:contribs 930:closing 831:actions 815:message 202:Line 1: 199:Line 1: 18:User:NQ 1083:tokens 1033:action 967:action 912:opened 899:opened 847:action 729:submit 681:append 515:loader 56:Inline 1065:token 871:flags 859:label 799:title 754:event 741:event 521:using 186:edits 184:6,648 123:edits 121:6,648 16:< 1108:done 1077:user 1023:post 961:data 955:data 936:data 918:then 887:then 160:talk 97:talk 1206:}); 1199:}); 1192:}); 1185:}); 1167:}); 1105:}). 1089:get 1020:(). 1017:Api 1008:new 970:=== 884:}). 763:(); 712:(); 662:(); 644:new 635:var 628:(); 610:new 601:var 572:css 480:}); 192:gpl 1160:); 1148:). 1136:). 1127:$ 1117:() 1071:mw 1026:({ 1011:mw 949:if 877:}] 837:}, 696:); 678:). 669:$ 653:ui 647:OO 619:ui 613:OO 587:); 559:); 550:$ 530:() 524:(, 509:mw 235:// 177:, 173:, 162:| 154:NQ 114:, 110:, 99:| 91:NQ 1178:} 1154:( 1142:( 1130:( 1120:{ 1111:( 1098:) 1092:( 1086:. 1080:. 1074:. 1068:: 1058:, 1052:: 1042:, 1036:: 1014:. 979:{ 976:) 964:. 952:( 942:{ 939:) 933:, 927:( 921:( 915:. 905:{ 902:) 896:( 890:( 874:: 868:, 862:: 856:, 850:: 844:{ 834:: 824:, 818:: 808:, 802:: 792:{ 789:, 783:( 777:. 757:. 747:{ 744:) 738:( 732:( 726:. 706:. 690:. 684:( 672:( 656:. 650:. 641:= 622:. 616:. 607:= 581:, 575:( 569:. 553:( 547:= 533:{ 518:. 512:. 473:} 223:* 221:/ 212:/ 210:/ 166:) 158:( 103:) 95:(

Index

User:NQ
Browse history interactively
← Previous edit

Revision as of 09:20, 1 November 2016
view source
NQ
talk
contribs
Extended confirmed users
Pending changes reviewers
Rollbackers
← Previous edit
Latest revision as of 01:11, 8 December 2016
view source
NQ
talk
contribs
Extended confirmed users
Pending changes reviewers
Rollbackers








Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.