[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2019-02-09 Thread Ash_Crow
Ash_Crow added a comment. It would be great if the script allowed to create a new item even if there are (irrelevant) results.TASK DETAILhttps://phabricator.wikimedia.org/T107693EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Ash_CrowCc: Ash_Crow,

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2018-07-12 Thread Mvolz
Mvolz added a comment. I'm oTASK DETAILhttps://phabricator.wikimedia.org/T107693EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MvolzCc: srishakatux, eflyjason, Ladsgroup, Liuxinyu970226, PokestarFan, Lydia_Pintscher, ChristianKl, Sjoerddebruin, daniel,

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-11 Thread eflyjason
eflyjason added a comment. In T107693#3826552, @Mvolz wrote: Would you like to submit this work for review on the google code-in website? We can't approve it unless that is done :). Thank you! I've added it to https://www.wikidata.org/wiki/Wikidata:Tools/User_scripts#AddNewItem and also

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-10 Thread Mvolz
Mvolz added a comment. In T107693#3826384, @eflyjason wrote: In T107693#3826291, @Sjoerddebruin wrote: I saw that the script also affects the property input field, I don't think that should be happening. Fixed :D

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-10 Thread eflyjason
eflyjason added a comment. In T107693#3826291, @Sjoerddebruin wrote: I saw that the script also affects the property input field, I don't think that should be happening. Fixed :D https://www.wikidata.org/w/index.php?title=User:Eflyjason/Gadget-CreateNewItem.js=606686398TASK

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-10 Thread Sjoerddebruin
Sjoerddebruin added a comment. I saw that the script also affects the property input field, I don't think that should be happening.TASK DETAILhttps://phabricator.wikimedia.org/T107693EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: SjoerddebruinCc: eflyjason,

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-09 Thread eflyjason
eflyjason added a comment. https://www.wikidata.org/w/index.php?title=User:Eflyjason/Gadget-CreateNewItem.js=606565642 In T107693#3825336, @Sjoerddebruin wrote: Great so far! Is it possible to use OOjs UI for the popup though? We are slowly transforming our current gadgets to it. The form will

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-09 Thread Mvolz
Mvolz added a comment. In T107693#3825308, @eflyjason wrote: https://www.wikidata.org/w/index.php?title=User:Eflyjason/Gadget-CreateNewItem.js=606396356 the popup is working too :D Nice! But I'm getting an error when trying to create an item from the pop-up "[Wiws9wpAME0AABYAle0AAABL]

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-09 Thread Sjoerddebruin
Sjoerddebruin added a comment. Great so far! Is it possible to use OOjs UI for the popup though? We are slowly transforming our current gadgets to it. The form will automatically look correct as well then.TASK DETAILhttps://phabricator.wikimedia.org/T107693EMAIL

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-09 Thread eflyjason
eflyjason added a comment. https://www.wikidata.org/w/index.php?title=User:Eflyjason/Gadget-CreateNewItem.js=606396356 the popup is working too :DTASK DETAILhttps://phabricator.wikimedia.org/T107693EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: eflyjasonCc:

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-09 Thread eflyjason
eflyjason added a comment. https://www.wikidata.org/wiki/User:Eflyjason/Gadget-CreateNewItem.js var currentFieldText = ""; $(document).on('input propertychange paste', ".ui-suggester-input", function() { currentFieldText = $(this).val(); //console.log("Entering: "+currentFieldText); });

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-09 Thread Mvolz
Mvolz added a comment. You should be able to traverse the DOM with JS to insert it directly into the menu. Try inspecting the element using your browser's debugger to see where that would be. I guess the hard part is when the script should be triggered; maybe on typing in the box? And check every

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-12-09 Thread eflyjason
eflyjason added a comment. I guess that this gadget will have to override _initMenu function in jquery.wikibase.entityselector.js and replace the null with the open new URL function? customItems.unshift( new $.ui.ooMenu.CustomItem( this.options.messages.notfound, function () {

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-11-27 Thread Ladsgroup
Ladsgroup added a comment. In T107693#3786916, @Aklapper wrote: @Ladsgroup: If you plan to mentor this in GCi2017, could you edit the task description and explain which exact odebase(s) this task is about? Thanks! The codebase about this would be a user script (User:Foo/common.js) and they way

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-11-26 Thread Lydia_Pintscher
Lydia_Pintscher added a comment. I am not convinced this is a beneficial change which is why I want this to be trialed as a gadget first.TASK DETAILhttps://phabricator.wikimedia.org/T107693EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Lydia_PintscherCc:

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches) in Wikidata

2017-11-25 Thread Mvolz
Mvolz added a comment. In T107693#3786916, @Aklapper wrote: @Ladsgroup: If you plan to mentor this in GCi2017, could you edit the task description and explain which exact odebase(s) this task is about? Thanks! Whoops, I misread that as GSoC and just expanded it to be more GSoC-y. It could

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add "Create new item" link to property value drop-down menu (particularly when no item matches)

2016-08-31 Thread Sjoerddebruin
Sjoerddebruin added a comment. Now that there is a text showing up during no results, it should be much easier to create a gadget. A link to a pre-filled Special:NewItem would do.TASK DETAILhttps://phabricator.wikimedia.org/T107693EMAIL

[Wikidata-bugs] [Maniphest] [Commented On] T107693: Add Create new item link to property value drop-down menu (particularly when no item matches)

2015-08-03 Thread Mvolz
Mvolz added a comment. I thought it seemed obvious but couldn't find that, thanks. Looks like it was closed as it should start life as a gadget, but no one ever made one? Alas. matej_suchanek added a subscriber: matej_suchanek. matej_suchanek added a comment. It is duplicate of