[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2013-07-25 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Helder  changed:

   What|Removed |Added

   See Also||https://bugzilla.wikimedia.
   ||org/show_bug.cgi?id=29454

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2013-05-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Liangent  changed:

   What|Removed |Added

   See Also||https://bugzilla.wikimedia.
   ||org/show_bug.cgi?id=48239

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2013-03-25 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Michelle Lee Kosik  changed:

   What|Removed |Added

 CC||kosi...@mail.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-07-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #10 from mybugs.m...@gmail.com 2012-07-20 23:33:09 UTC ---
In reply to comment #9)
> * It being a minor convenience feature, it is important that it certainly does
> not introduce new bugs. So I think we should either implement this by asking
> the user in case of ambiguity or not implement it at all.

I would say its absence is actually an inconvenient bug, because from time to
time I see people doing this:
https://pt.wikipedia.org/wiki/Wikipedia:Projetos/Música/Bandas/matriz?action=history&uselang=en

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-07-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Sumana Harihareswara  changed:

   What|Removed |Added

   Keywords|patch-need-review   |patch-reviewed

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-07-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #9 from Krinkle  2012-07-20 19:46:34 UTC ---
You're free to submit through git review, but note that at the moment I think
implementation details are still to be discussed first - or at least the
implementation proposed so far should be implemented.

Notes:
* Asking the user sounds good (this was your idea), however the patch applied
does not do that (yet).
* It being a minor convenience feature, it is important that it certainly does
not introduce new bugs. So I think we should either implement this by asking
the user in case of ambiguity or not implement it at all.
* And, again, to parse titles use mw.Title.
* To bind an event for one trigger only .one() may be useful, see also
http://api.jquery.com/one. At least unbind it instead of having the function
execute still on every change when it is no longer needed. That removes the
need of this boolean state keeper.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-07-20 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #8 from Sumana Harihareswara  2012-07-20 
19:33:55 UTC ---
Bergi: ping re submitting this into Git.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-05-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #7 from Sumana Harihareswara  2012-05-25 
02:58:56 UTC ---
Bergi, thank you for your patch.  Can I ask you to use developer access to
directly suggest it into our Git source control system?

https://www.mediawiki.org/wiki/Developer_access

https://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Sumana Harihareswara  changed:

   What|Removed |Added

   Keywords||need-review, patch
 CC||suma...@panix.com

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #6 from Bergi  2012-03-11 02:44:38 UTC ---
Created attachment 10214
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=10214
proposed patch

Use of regexp and setTimeout is horrible. However, I'm not quite sure whether a
wikiUrlencode for the namespace is useful or not.

My patch comes from my solution at [[de:WP:TSW#Seiten verschieben]].

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #5 from mybugs.m...@gmail.com 2012-03-05 19:01:37 UTC ---
(In reply to comment #4)
> How can you tell that's what the user wants ?
> 
> I know some wikis have pages like "Category:Wikipedia:Foobar" or
> "Wikipedia:Category:Foo".
> 
> When on "Wikipedia:Foo" and wanting to move it to "Wikipedia:Category:Foo" and
> you'd paste "Category:Foo" in the title field, then it shouldn't change the
> namespace selector.

Ok. So, maybe it would be better to ask the user?
In your example, after the text "Category:Foo" is pasted in the title field,
the script would aks something like this:

Do you want to move the page to which of these names?
[x] Category:Foo
[ ] Wikipedia:Category:Foo


> Also to parse titles, use mw.Title.

I didn't read its code yet, but I'll do for next time =)
PS: this needs to be documented on
https://www.mediawiki.org/wiki/ResourceLoader/Default_modules

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #4 from Krinkle  2012-03-05 06:49:47 UTC ---
How can you tell that's what the user wants ?

I know some wikis have pages like "Category:Wikipedia:Foobar" or
"Wikipedia:Category:Foo".

When on "Wikipedia:Foo" and wanting to move it to "Wikipedia:Category:Foo" and
you'd paste "Category:Foo" in the title field, then it shouldn't change the
namespace selector.

Also to parse titles, use mw.Title.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Krinkle  changed:

   What|Removed |Added

  Attachment #10171|1   |0
   is patch||

--- Comment #4 from Krinkle  2012-03-05 06:49:06 UTC ---
Comment on attachment 10171
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=10171
Example

>$(function(){
>   var nsList = [], reNS, nsNum,
>   $title = $('#wpNewTitleMain'),
>   $ns = $('#wpNewTitleNs');
>   $.each(mw.config.get('wgNamespaceIds'), function( ns, num ){
>   if(ns!== ''){
>   nsList.push( $.escapeRE( ns ) );
>   }
>   });
>   nsList = nsList.join('|');
>   reNS = new RegExp( '^(:' + nsList + '):(.+)$', 'i' );
>
>   $title.bind('paste', function(){
>   setTimeout(function(){
>   var ns, m;
>   m = decodeURIComponent( $title.val() ).replace(/ /g, 
> '_').match( reNS );
>   if( m && m.length === 3 ){
>   m[1] = m[1].toLowerCase();
>   nsNum = mw.config.get('wgNamespaceIds')[ m[1] ];
>   ns = mw.config.get('wgFormattedNamespaces')[ 
> nsNum ];
>   if( ns !== undefined ){
>   $title.val( m[2] );
>   $ns.val( nsNum );
>   }
>   }
>   },0);
>   });
>});

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Krinkle  changed:

   What|Removed |Added

  Attachment #10171|0   |1
   is patch||
  Attachment #10171|application/javascript  |text/plain
  mime type||

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #3 from mybugs.m...@gmail.com 2012-03-04 16:12:55 UTC ---
Created attachment 10171
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=10171
Example

(In reply to comment #2)
> What if I actually want a page [[Wikipedia:Wikipedia:Foo]]?

Take a look in the attached example. It will select the "Wikipedia" namespace
and change the text to "Wikipedia:Foo". I've tested on Google Chrome's console.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-04 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Liangent  changed:

   What|Removed |Added

 CC||liang...@gmail.com

--- Comment #2 from Liangent  2012-03-04 14:34:26 UTC ---
What if I actually want a page [[Wikipedia:Wikipedia:Foo]]?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-01 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

Mark A. Hershberger  changed:

   What|Removed |Added

   Priority|Unprioritized   |Normal
   Severity|normal  |enhancement

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 34848] Improve mediawiki.special.movePage.js to remove the namespace name when the user paste the full target name in the field

2012-03-01 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=34848

--- Comment #1 from mybugs.m...@gmail.com 2012-03-01 13:05:38 UTC ---
Copy/paste fail. I mean r110209.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l